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
update to 4.1c and use netdb.h
[unix-history]
/
usr
/
src
/
sbin
/
mount
/
mount.c
diff --git
a/usr/src/sbin/mount/mount.c
b/usr/src/sbin/mount/mount.c
index
3770601
..
99867a8
100644
(file)
--- a/
usr/src/sbin/mount/mount.c
+++ b/
usr/src/sbin/mount/mount.c
@@
-1,4
+1,4
@@
-static char *sccsid = "@(#)mount.c 4.
6
(Berkeley) %G%";
+static char *sccsid = "@(#)mount.c 4.
7
(Berkeley) %G%";
#include <stdio.h>
#include <fstab.h>
#include <stdio.h>
#include <fstab.h>
@@
-78,12
+78,10
@@
top:
}
if (argc < 2 || argc > 3) {
argcnt:
}
if (argc < 2 || argc > 3) {
argcnt:
- printf("arg count\n");
+ fprintf(stderr,
+ "usage: mount [ -a ] [ -r ] [ -f ] [ -v ] [ special dir ]\n");
exit(1);
}
exit(1);
}
- ro = 0;
- if(argc > 3)
- ro++;
mountfs(argv[1], argv[2], ro);
}
mountfs(argv[1], argv[2], ro);
}