| 1 | //go:build !windows |
| 2 | |
| 3 | package winaclresidue |
| 4 | |
| 5 | import ( |
| 6 | "errors" |
| 7 | "os" |
| 8 | ) |
| 9 | |
| 10 | // SweepStaleMarkers is a no-op outside Windows. |
| 11 | func SweepStaleMarkers() {} |
| 12 | |
| 13 | // RepairLegacyCredentialDeny is a no-op outside Windows. |
| 14 | func RepairLegacyCredentialDeny(string) error { return nil } |
| 15 | |
| 16 | // ResetCredentialDACL has no equivalent outside Windows. |
| 17 | func ResetCredentialDACL(string) error { return errors.ErrUnsupported } |
| 18 | |
| 19 | // RenameLockedFile is an ordinary rename outside Windows. |
| 20 | func RenameLockedFile(path, target string) error { return os.Rename(path, target) } |
| 21 |