Skip to content

Commit

Permalink
fix some obvious error
Browse files Browse the repository at this point in the history
Signed-off-by: ningmingxiao <ning.mingxiao@zte.com.cn>
  • Loading branch information
ningmingxiao committed Jul 28, 2023
1 parent 2785886 commit ea3905d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go-selinux/selinux_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ func rchcon(fpath, label string) error { //revive:disable:cognitive-complexity
}
return pwalkdir.Walk(fpath, func(p string, _ fs.DirEntry, _ error) error {
if fastMode {
if cLabel, err := lFileLabel(fpath); err == nil && cLabel == label {
if cLabel, err := lFileLabel(p); err == nil && cLabel == label {
return nil
}
}
Expand Down

0 comments on commit ea3905d

Please sign in to comment.