aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mount.c
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-04-04 16:56:04 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-04-04 16:56:04 +0000
commit6beebce64c7f0cf8ebec0c75e88dde48d5b54530 (patch)
tree9eeb51c1e63754c589ea0cd4c9f17194d94b7593 /util-linux/mount.c
parent267486f23070e42f18fc3df5a5f9065e4cb27212 (diff)
downloadbusybox-w32-6beebce64c7f0cf8ebec0c75e88dde48d5b54530.tar.gz
busybox-w32-6beebce64c7f0cf8ebec0c75e88dde48d5b54530.tar.bz2
busybox-w32-6beebce64c7f0cf8ebec0c75e88dde48d5b54530.zip
You'd think there'd be a compiler warning for "pointless if", wouldn't you?
git-svn-id: svn://busybox.net/trunk/busybox@14746 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux/mount.c')
-rw-r--r--util-linux/mount.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 42d0eb223..ba55d2480 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -291,11 +291,11 @@ static int singlemount(struct mntent *mp)
291 } 291 }
292 } 292 }
293 293
294 // Look at the file. (Not found isn't a failure for remount.) 294 // Look at the file. (Not found isn't a failure for remount, or for
295 // a synthetic filesystem like proc or sysfs.)
295 296
296 if (lstat(mp->mnt_fsname, &st)); 297 if (lstat(mp->mnt_fsname, &st));
297 298 else if (!(vfsflags & (MS_REMOUNT | MS_BIND | MS_MOVE))) {
298 if (!(vfsflags & (MS_REMOUNT | MS_BIND | MS_MOVE))) {
299 // Do we need to allocate a loopback device for it? 299 // Do we need to allocate a loopback device for it?
300 300
301 if (ENABLE_FEATURE_MOUNT_LOOP && S_ISREG(st.st_mode)) { 301 if (ENABLE_FEATURE_MOUNT_LOOP && S_ISREG(st.st_mode)) {