Skip to content

Commit a2ffc5e

Browse files
committed
rename: remove SetPathPermissions
useless on rename, permissions are preserved Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
1 parent bbb00e3 commit a2ffc5e

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

internal/common/connection.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,6 @@ func (c *BaseConnection) renameInternal(virtualSourcePath, virtualTargetPath str
974974
}
975975
return c.GetFsError(fsSrc, err)
976976
}
977-
vfs.SetPathPermissions(fsDst, fsTargetPath, c.User.GetUID(), c.User.GetGID())
978977
elapsed := time.Since(startTime).Nanoseconds() / 1000000
979978
_ = c.updateQuotaAfterRename(fsDst, virtualSourcePath, virtualTargetPath, fsTargetPath, initialSize, files, size)
980979
logger.CommandLog(renameLogSender, fsSourcePath, fsTargetPath, virtualSourcePath, virtualTargetPath,

0 commit comments

Comments
 (0)