Skip to content

Commit

Permalink
fix: system fs paths on windows
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Jul 5, 2024
1 parent f7e93ef commit 11f0194
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions files/fs.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package files

import "path/filepath"

func ownedByFilesystem(path string) bool {
p := filepath.Clean(path)
p := ToNixPath(path)
for _, pp := range append(fsPaths, logrotatePaths...) {
if p == pp {
return true
Expand Down

0 comments on commit 11f0194

Please sign in to comment.