mirror of
https://github.com/restic/restic.git
synced 2025-12-11 18:47:50 +00:00
fs: fix long path handling for ResetPermissions, ClearAttributes and security descriptors
This commit is contained in:
@@ -134,7 +134,7 @@ func IsAccessDenied(err error) bool {
|
||||
// ResetPermissions resets the permissions of the file at the specified path
|
||||
func ResetPermissions(path string) error {
|
||||
// Set the default file permissions
|
||||
if err := os.Chmod(path, 0600); err != nil {
|
||||
if err := os.Chmod(fixpath(path), 0600); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user