SCCS-vsn: sbin/mount/mount.c 4.4
-static char *sccsid = "@(#)mount.c 4.3 (Berkeley) %G%";
+static char *sccsid = "@(#)mount.c 4.4 (Berkeley) %G%";
#include <stdio.h>
#include <fstab.h>
#include <stdio.h>
#include <fstab.h>
main(argc, argv)
char **argv;
{
main(argc, argv)
char **argv;
{
+ if (!strcmp(argv[1], "-f"))
+ fake++, argc--, argv++;
register struct mtab *mp;
int mf;
register struct mtab *mp;
int mf;
- if(mount(spec, name, ro) < 0) {
+ if(fake==0 && mount(spec, name, ro) < 0)
np = spec;
while(*np++)
;
np = spec;
while(*np++)
;