// "fixperms" sub-command: apply proper permissions in files/ directories
-// Copyright (C) 2021 Simon Ruderich
+// Copyright (C) 2021-2023 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
"os"
"path/filepath"
- "ruderich.org/simon/safcm/cmd/safcm-remote/sync"
"ruderich.org/simon/safcm/cmd/safcm/config"
+ "ruderich.org/simon/safcm/remote/sync"
)
func MainFixperms() error {
// 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
}