diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-15 23:44:39 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-15 23:44:39 +0000 |
commit | 552d265b6ced1e56d31f20f16a7fe9ae818d568b (patch) | |
tree | 219a59b7e7a5ef53ddfc66cdc38e73e3f79258c8 /sbin/mount_union | |
parent | bf6413046b73005ecca3f5352c8711d00a6d00b9 (diff) |
getopt(3) returns -1 when out of args, not EOF, whee!
Diffstat (limited to 'sbin/mount_union')
-rw-r--r-- | sbin/mount_union/mount_union.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/mount_union/mount_union.c b/sbin/mount_union/mount_union.c index 3a019a90ab6..6650fe9c69b 100644 --- a/sbin/mount_union/mount_union.c +++ b/sbin/mount_union/mount_union.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mount_union.c,v 1.3 1996/06/23 14:31:43 deraadt Exp $ */ +/* $OpenBSD: mount_union.c,v 1.4 1997/01/15 23:41:27 millert Exp $ */ /* $NetBSD: mount_union.c,v 1.3 1996/04/13 01:32:11 jtc Exp $ */ /* @@ -47,7 +47,7 @@ char copyright[] = #if 0 static char sccsid[] = "@(#)mount_union.c 8.5 (Berkeley) 3/27/94"; #else -static char rcsid[] = "$OpenBSD: mount_union.c,v 1.3 1996/06/23 14:31:43 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: mount_union.c,v 1.4 1997/01/15 23:41:27 millert Exp $"; #endif #endif /* not lint */ @@ -83,7 +83,7 @@ main(argc, argv) mntflags = 0; args.mntflags = UNMNT_ABOVE; - while ((ch = getopt(argc, argv, "bo:r")) != EOF) + while ((ch = getopt(argc, argv, "bo:r")) != -1) switch (ch) { case 'b': args.mntflags &= ~UNMNT_OPMASK; |