X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fnfsumount.c;h=8902f0088a0533abdd3a0d64a06ac938d4231d86;hp=e7f37efe90639a231cde438e3ff304c9bf9990ae;hb=97fed3061fd5c742ebd1f685e3e6dcb62e835b74;hpb=e227ac0348431eecc1ddadf5d1907c8348741519 diff --git a/utils/mount/nfsumount.c b/utils/mount/nfsumount.c index e7f37ef..8902f00 100644 --- a/utils/mount/nfsumount.c +++ b/utils/mount/nfsumount.c @@ -348,7 +348,7 @@ int nfsumount(int argc, char *argv[]) ret = 0; if (mc) { - if (!lazy) + 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);