From 72799b18e5d7fe7a63e4137ee58a606d3817781d Mon Sep 17 00:00:00 2001 From: millert Date: Wed, 15 Jan 1997 23:40:20 +0000 Subject: getopt(3) returns -1 when out of args, not EOF, whee! --- usr.sbin/vipw/vipw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/vipw') diff --git a/usr.sbin/vipw/vipw.c b/usr.sbin/vipw/vipw.c index 4b603e8d294..6308bc92299 100644 --- a/usr.sbin/vipw/vipw.c +++ b/usr.sbin/vipw/vipw.c @@ -67,7 +67,7 @@ main(argc, argv) struct stat begin, end; int ch; - while ((ch = getopt(argc, argv, "")) != EOF) { + while ((ch = getopt(argc, argv, "")) != -1) { switch (ch) { case '?': default: -- cgit v1.2.3-59-g8ed1b