Skip to content

Commit

Permalink
Correct permissions in SCP example (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
kddubb authored and pkittenis committed Jan 3, 2019
1 parent e6f2aab commit 3991bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/scp_write.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def main():
s.handshake(sock)
s.agent_auth(args.user)
fileinfo = os.stat(args.source)
chan = s.scp_send64(args.destination, fileinfo.st_mode & 777, fileinfo.st_size,
chan = s.scp_send64(args.destination, fileinfo.st_mode & 0o777, fileinfo.st_size,
fileinfo.st_mtime, fileinfo.st_atime)
print("Starting SCP of local file %s to remote %s:%s" % (
args.source, args.host, args.destination))
Expand Down

0 comments on commit 3991bb3

Please sign in to comment.