mirror of
https://github.com/9001/copyparty.git
synced 2026-02-19 11:54:58 -05:00
sftp: fix default chmod (#1170)
This commit is contained in:
@@ -554,7 +554,7 @@ class SFTP_Srv(paramiko.SFTPServerInterface):
|
||||
|
||||
chmod = getattr(attr, "st_mode", None)
|
||||
if chmod is None:
|
||||
chmod = vf.get("chmod_f", 644)
|
||||
chmod = vf.get("chmod_f", 0o644)
|
||||
self.log("open(%s, %x): client did not chmod" % (vp, iflag))
|
||||
else:
|
||||
self.log("open(%s, %x): client set chmod %s" % (vp, iflag, chmod))
|
||||
|
||||
Reference in New Issue
Block a user