diff --git a/copyparty/sftpd.py b/copyparty/sftpd.py index 52f94fd6..e8cf8178 100644 --- a/copyparty/sftpd.py +++ b/copyparty/sftpd.py @@ -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))