mirror of
https://github.com/sheumann/hush.git
synced 2024-12-25 18:33:06 +00:00
You'd think there'd be a compiler warning for "pointless if", wouldn't you?
This commit is contained in:
parent
3b84dfc2a8
commit
ab8736064b
@ -291,11 +291,11 @@ static int singlemount(struct mntent *mp)
|
||||
}
|
||||
}
|
||||
|
||||
// Look at the file. (Not found isn't a failure for remount.)
|
||||
// Look at the file. (Not found isn't a failure for remount, or for
|
||||
// a synthetic filesystem like proc or sysfs.)
|
||||
|
||||
if (lstat(mp->mnt_fsname, &st));
|
||||
|
||||
if (!(vfsflags & (MS_REMOUNT | MS_BIND | MS_MOVE))) {
|
||||
else if (!(vfsflags & (MS_REMOUNT | MS_BIND | MS_MOVE))) {
|
||||
// Do we need to allocate a loopback device for it?
|
||||
|
||||
if (ENABLE_FEATURE_MOUNT_LOOP && S_ISREG(st.st_mode)) {
|
||||
|
Loading…
Reference in New Issue
Block a user