mcctrl/sysfs: add parenthesis around SYSFS_UNLINK_KEEP_ANCESTOR check

! has more priority than &, so !flags & SYSFS_UNLINK_KEEP_ANCESTOR is
not very likely. Change to !(flags & SYSFS_UNLINK_KEEP_ANCESTOR)
This commit is contained in:
Dominique Martinet
2017-09-13 09:47:54 +09:00
parent 38910fe13d
commit d213efac79

View File

@ -1207,7 +1207,7 @@ sysfsm_unlink(struct sysfsm_data *sdp, const char *path0, int flags)
goto out;
}
if (!flags & SYSFS_UNLINK_KEEP_ANCESTOR) {
if (!(flags & SYSFS_UNLINK_KEEP_ANCESTOR)) {
cleanup_ancestor(dirp);
}