summaryrefslogtreecommitdiff
path: root/libexec/login_skey/login_skey.c
diff options
context:
space:
mode:
authorMike Pechkin <mpech@cvs.openbsd.org>2001-10-24 13:06:37 +0000
committerMike Pechkin <mpech@cvs.openbsd.org>2001-10-24 13:06:37 +0000
commit9531af194e3d30d1d195cd6cee8ddf4e13f5e668 (patch)
tree50e73d1a354adfd017b644ec37a53be2492d04a7 /libexec/login_skey/login_skey.c
parenta8300e86e7f5e26893c1db0e382f2f2ce983954c (diff)
getopt(3) returns -1 when out of args, not EOF.
millert@ ok
Diffstat (limited to 'libexec/login_skey/login_skey.c')
-rw-r--r--libexec/login_skey/login_skey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/login_skey/login_skey.c b/libexec/login_skey/login_skey.c
index 0b26d5dfa8c..6d0cf6938bd 100644
--- a/libexec/login_skey/login_skey.c
+++ b/libexec/login_skey/login_skey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: login_skey.c,v 1.3 2001/06/25 22:10:29 millert Exp $ */
+/* $OpenBSD: login_skey.c,v 1.4 2001/10/24 13:06:35 mpech Exp $ */
/*-
* Copyright (c) 1995 Berkeley Software Design, Inc. All rights reserved.
@@ -80,7 +80,7 @@ main(argc, argv)
openlog(NULL, LOG_ODELAY, LOG_AUTH);
- while ((c = getopt(argc, argv, "ds:v:")) != EOF)
+ while ((c = getopt(argc, argv, "ds:v:")) != -1)
switch(c) {
case 'd': /* to remain undocumented */
back = stdout;