]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mount/nfsumount.c
umount should succeed even if we cannot contact the server.
[nfs-utils.git] / utils / mount / nfsumount.c
index e65f58f0122374ad92f881d96e7072a9f0fbe03e..b9737be23d355b86fd40a66d64adc22542755215 100644 (file)
@@ -375,12 +375,11 @@ int nfsumount(int argc, char *argv[])
        ret = 0;
        if (mc) {
                if (!lazy)
-                       ret = _nfsumount(mc->m.mnt_fsname, mc->m.mnt_opts);
-               if(ret)
-                       ret = del_mtab(mc->m.mnt_fsname, mc->m.mnt_dir);
+                       _nfsumount(mc->m.mnt_fsname, mc->m.mnt_opts);
+               ret = del_mtab(mc->m.mnt_fsname, mc->m.mnt_dir);
        } else if (*spec != '/') {
                if (!lazy)
-                       ret = _nfsumount(spec, "tcp,v3");
+                       _nfsumount(spec, "tcp,v3");
        } else
                ret = del_mtab(NULL, spec);