projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zero link count table increased 50 => 500; corrupted directories now pfatal.
[unix-history]
/
usr
/
src
/
sbin
/
umount
/
umount.c
diff --git
a/usr/src/sbin/umount/umount.c
b/usr/src/sbin/umount/umount.c
index
16cc42b
..
d094118
100644
(file)
--- a/
usr/src/sbin/umount/umount.c
+++ b/
usr/src/sbin/umount/umount.c
@@
-1,4
+1,4
@@
-static char *sccsid = "@(#)umount.c 4.
5
(Berkeley) %G%";
+static char *sccsid = "@(#)umount.c 4.
6
(Berkeley) %G%";
#include <stdio.h>
#include <fstab.h>
#include <stdio.h>
#include <fstab.h>
@@
-31,12
+31,12
@@
main(argc, argv)
mf = open("/etc/mtab", 0);
read(mf, (char *)mtab, sizeof (mtab));
again:
mf = open("/etc/mtab", 0);
read(mf, (char *)mtab, sizeof (mtab));
again:
- if (!strcmp(*argv, "-v")) {
+ if (
argc > 0 &&
!strcmp(*argv, "-v")) {
vflag++;
argc--, argv++;
goto again;
}
vflag++;
argc--, argv++;
goto again;
}
- if (!strcmp(*argv, "-a")) {
+ if (
argc > 0 &&
!strcmp(*argv, "-a")) {
all++;
argc--, argv++;
goto again;
all++;
argc--, argv++;
goto again;