diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1998-09-05 20:00:06 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1998-09-05 20:00:06 +0000 |
commit | 0d7a949eb5f7d1cfb0f57fbae0ad658579f09d1f (patch) | |
tree | 56efcf9b877111ff4b221b1b873d949c59644d2f /sbin/mount_xfs/mount_xfs.c | |
parent | f43e23a8e19d6699242d1acc32e186ca2dff3a72 (diff) |
make a link to mount_afs that will automagically start afsd
Diffstat (limited to 'sbin/mount_xfs/mount_xfs.c')
-rw-r--r-- | sbin/mount_xfs/mount_xfs.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/sbin/mount_xfs/mount_xfs.c b/sbin/mount_xfs/mount_xfs.c index 8491a820276..0ca7eee5475 100644 --- a/sbin/mount_xfs/mount_xfs.c +++ b/sbin/mount_xfs/mount_xfs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mount_xfs.c,v 1.1 1998/09/05 17:33:29 art Exp $ */ +/* $OpenBSD: mount_xfs.c,v 1.2 1998/09/05 20:00:05 art Exp $ */ /* * Copyright (c) 1995, 1996, 1997 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). @@ -62,7 +62,7 @@ static const struct mntopt mopts[] = { static void usage(void) { - fprintf(stderr, "Usage: %s [-a] [-o options] device path\n", + fprintf(stderr, "Usage: %s [-o options] device path\n", __progname); exit(1); } @@ -74,21 +74,17 @@ main(int argc, char **argv) int error; int ch; int mntflags = 0; -#ifdef not_yet - int afsd = 1; -#endif + int afsd = 0; + + if (strstr(__progname, "mount_afs")) + afsd = 1; optind = optreset = 1; - while ((ch = getopt(argc, argv, "ao:")) != -1) + while ((ch = getopt(argc, argv, "o:")) != -1) switch (ch) { case 'o': getmntopts(optarg, mopts, &mntflags); break; -#ifdef not_yey - case 'a': - afsd = 0; - break; -#endif case '?': default: usage(); |