diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-03-16 21:27:48 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-03-16 21:27:48 +0000 |
commit | 1fc8ba164ff0bf2dc1da8252802817c32eda3fda (patch) | |
tree | da89c8d273f9c26a13e21e8decb3c3ac7eaab795 /sbin/mount/mount.c | |
parent | 42c2c1d27e37d97bf349c38e9567c5e07e946672 (diff) |
Do not signal mountd when just showing mounts. Fixes PR 3695, although
mountd may still act on out of date mount info.
ok cedric@ millert@ deraadt@
Diffstat (limited to 'sbin/mount/mount.c')
-rw-r--r-- | sbin/mount/mount.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 25558475caf..00012af74aa 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mount.c,v 1.34 2003/10/01 06:17:31 deraadt Exp $ */ +/* $OpenBSD: mount.c,v 1.35 2004/03/16 21:27:47 otto Exp $ */ /* $NetBSD: mount.c,v 1.24 1995/11/18 03:34:29 cgd Exp $ */ /* @@ -40,7 +40,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.34 2003/10/01 06:17:31 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: mount.c,v 1.35 2004/03/16 21:27:47 otto Exp $"; #endif #endif /* not lint */ @@ -208,6 +208,7 @@ main(int argc, char * const argv[]) continue; prmount(&mntbuf[i]); } + exit(rval); } break; case 1: |