diff options
-rw-r--r-- | umount.c | 8 | ||||
-rw-r--r-- | util-linux/umount.c | 8 |
2 files changed, 8 insertions, 8 deletions
@@ -212,18 +212,18 @@ static int umount_all(int useMtab) /* Never umount /proc on a umount -a */ if (strstr(mountpt, "proc")!= NULL) continue; - status = do_umount(mountpt, useMtab); - if (status != 0) { + if (!do_umount(mountpt, useMtab)) { /* Don't bother retrying the umount on busy devices */ if (errno == EBUSY) { perror_msg("%s", mountpt); + status = FALSE; continue; } - status = do_umount(mountpt, useMtab); - if (status != 0) { + if (!do_umount(mountpt, useMtab)) { printf("Couldn't umount %s on %s: %s\n", mountpt, mtab_getinfo(mountpt, MTAB_GETDEVICE), strerror(errno)); + status = FALSE; } } } diff --git a/util-linux/umount.c b/util-linux/umount.c index 0867118..40d25f9 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c @@ -212,18 +212,18 @@ static int umount_all(int useMtab) /* Never umount /proc on a umount -a */ if (strstr(mountpt, "proc")!= NULL) continue; - status = do_umount(mountpt, useMtab); - if (status != 0) { + if (!do_umount(mountpt, useMtab)) { /* Don't bother retrying the umount on busy devices */ if (errno == EBUSY) { perror_msg("%s", mountpt); + status = FALSE; continue; } - status = do_umount(mountpt, useMtab); - if (status != 0) { + if (!do_umount(mountpt, useMtab)) { printf("Couldn't umount %s on %s: %s\n", mountpt, mtab_getinfo(mountpt, MTAB_GETDEVICE), strerror(errno)); + status = FALSE; } } } |