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:
@@ -85,7 +85,7 @@ func ClearSystem(path string) error {
|
||||
|
||||
// ClearAttribute removes the specified attribute from the file.
|
||||
func ClearAttribute(path string, attribute uint32) error {
|
||||
ptr, err := windows.UTF16PtrFromString(path)
|
||||
ptr, err := windows.UTF16PtrFromString(fixpath(path))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user