diff options
author | Robey Pointer <robey@lag.net> | 2006-09-07 19:28:16 -0700 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2006-09-07 19:28:16 -0700 |
commit | 305a4ae417089a17e6314055e37c4d74b1ecc978 (patch) | |
tree | bf64fc5d5228523ab912892d5f73b26543c7b44c | |
parent | 682185bac161244838b7d6da0c2247db997145ff (diff) |
[project @ robey@lag.net-20060908022816-ea2856cefb9d83e0]
fix from john arbash-meinel for the stub sftp server's default open mode
-rw-r--r-- | tests/stub_sftp.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/stub_sftp.py b/tests/stub_sftp.py index 2eb5f241..dedb78ac 100644 --- a/tests/stub_sftp.py +++ b/tests/stub_sftp.py @@ -97,7 +97,9 @@ class StubSFTPServer (SFTPServerInterface): if mode is not None: fd = os.open(path, flags, mode) else: - fd = os.open(path, flags) + # os.open() defaults to 0777 which is + # an odd default mode for files + fd = os.open(path, flags, 0666) except OSError, e: return SFTPServer.convert_errno(e.errno) if (flags & os.O_CREAT) and (attr is not None): |