diff options
-rw-r--r-- | utils/mount/nfsumount.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/mount/nfsumount.c b/utils/mount/nfsumount.c index 8902f00..9e9cd16 100644 --- a/utils/mount/nfsumount.c +++ b/utils/mount/nfsumount.c @@ -350,8 +350,7 @@ int nfsumount(int argc, char *argv[]) if (mc) { if (!lazy && strcmp(mc->m.mnt_type, "nfs4") != 0) ret = do_nfs_umount(mc->m.mnt_fsname, mc->m.mnt_opts); - if (!ret || force) - ret = del_mtab(mc->m.mnt_fsname, mc->m.mnt_dir); + ret = del_mtab(mc->m.mnt_fsname, mc->m.mnt_dir) ?: ret; } else if (*spec != '/') { if (!lazy) ret = do_nfs_umount(spec, "tcp,v3"); |