// "fixperms" sub-command: apply proper permissions in files/ directories
-// Copyright (C) 2021 Simon Ruderich
+// Copyright (C) 2021-2024 Simon Ruderich
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// chmodNoFollow works like os.Chmod but doesn't follow symlinks.
func chmodNoFollow(path string, mode fs.FileMode) error {
- x, err := sync.OpenFileNoFollow(path)
+ x, err := sync.OpenFileNoSymlinks(path)
if err != nil {
return err
}