diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1996-11-12 09:09:20 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1996-11-12 09:09:20 +0000 |
commit | 92901874338261a5f14d4dfd936800b49c507505 (patch) | |
tree | 7ba9d5869efe03cd3d0da6fea4c82198985678e5 /sbin | |
parent | e356f8e6ead5dee01a81ec27d837fd801ae6d10f (diff) |
fix
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mount/mount.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 721870eeae1..6cb66c29b7c 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mount.c,v 1.5 1996/11/12 08:46:13 downsj Exp $ */ +/* $OpenBSD: mount.c,v 1.6 1996/11/12 09:09:19 downsj Exp $ */ /* $NetBSD: mount.c,v 1.24 1995/11/18 03:34:29 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)mount.c 8.19 (Berkeley) 4/19/94"; #else -static char rcsid[] = "$OpenBSD: mount.c,v 1.5 1996/11/12 08:46:13 downsj Exp $"; +static char rcsid[] = "$OpenBSD: mount.c,v 1.6 1996/11/12 09:09:19 downsj Exp $"; #endif #endif /* not lint */ @@ -230,12 +230,14 @@ main(argc, argv) * specified ala Sun. If not, check the disklabel for a * known filesystem type. */ - if (typelist == NULL && strpbrk(argv[0], ":@") != NULL) - vfstype = "nfs"; - else { - char *labelfs = readlabelfs(argv[0]); - if (labelfs != NULL) - vfstype = labelfs; + if (typelist == NULL) { + if (strpbrk(argv[0], ":@") != NULL) + vfstype = "nfs"; + else { + char *labelfs = readlabelfs(argv[0]); + if (labelfs != NULL) + vfstype = labelfs; + } } rval = mountfs(vfstype, |