When using -A option (unmount all mounted filesystems), do not attempt

to unmount /dev as it will always fail.
This commit is contained in:
Kirk McKusick 2011-07-14 20:17:05 +00:00
parent c2e3261ad6
commit 80bbaeb540

View File

@ -154,6 +154,8 @@ main(int argc, char *argv[])
sfs = &mntbuf[mntsize];
if (checkvfsname(sfs->f_fstypename, typelist))
continue;
if (strcmp(sfs->f_mntonname, "/dev") == 0)
continue;
if (umountfs(sfs) != 0)
errs = 1;
}