SCCS-vsn: sbin/umount/umount.c 8.5
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)umount.c 8.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)umount.c 8.5 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
errs = umountall();
} else
for (errs = 0; *argv != NULL; ++argv)
errs = umountall();
} else
for (errs = 0; *argv != NULL; ++argv)
- if (umountfs(*argv) == 0)
+ if (umountfs(*argv) != 0)
if (realpath(name, rname) == NULL) {
warn("%s", rname);
if (realpath(name, rname) == NULL) {
warn("%s", rname);
if ((delimp = strchr(name, '@')) != NULL) {
hostp = delimp + 1;
if ((delimp = strchr(name, '@')) != NULL) {
hostp = delimp + 1;
} else
hp = NULL;
if (!namematch(hp))
} else
hp = NULL;
if (!namematch(hp))
if (vflag)
(void)printf("%s: unmount from %s\n", name, mntpt);
if (vflag)
(void)printf("%s: unmount from %s\n", name, mntpt);