fs: fix long path handling for ResetPermissions, ClearAttributes and security descriptors

This commit is contained in:
Michael Eischer
2024-07-29 20:10:58 +02:00
parent 76d56e24d6
commit 62c4a5e9a0
3 changed files with 6 additions and 6 deletions

View File

@@ -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
}