mirror of
https://github.com/9001/copyparty.git
synced 2026-01-12 07:44:08 -07:00
sftp: fix default chmod (#1170)
This commit is contained in:
parent
6c41bac6d2
commit
2f4a30b620
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue