Skip to content

Commit 37cba3e

Browse files
authored
Merge pull request #200 from ningmingxiao/dev1
fix some error
2 parents 2785886 + ea3905d commit 37cba3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go-selinux/selinux_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ func rchcon(fpath, label string) error { //revive:disable:cognitive-complexity
11341134
}
11351135
return pwalkdir.Walk(fpath, func(p string, _ fs.DirEntry, _ error) error {
11361136
if fastMode {
1137-
if cLabel, err := lFileLabel(fpath); err == nil && cLabel == label {
1137+
if cLabel, err := lFileLabel(p); err == nil && cLabel == label {
11381138
return nil
11391139
}
11401140
}

0 commit comments

Comments
 (0)