summaryrefslogtreecommitdiffstats
path: root/src/krb524
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1998-05-06 20:24:10 +0000
committerTheodore Tso <tytso@mit.edu>1998-05-06 20:24:10 +0000
commitdf85cc01656c2a234642047ea22b44b5f6a65683 (patch)
treec8eb10be62668ae2cde30336430d8145a3d30df3 /src/krb524
parent376a54c9f64fbb57813e5902bd46ed63e9b2c746 (diff)
downloadkrb5-df85cc01656c2a234642047ea22b44b5f6a65683.tar.gz
krb5-df85cc01656c2a234642047ea22b44b5f6a65683.tar.xz
krb5-df85cc01656c2a234642047ea22b44b5f6a65683.zip
POSIX states that getopt returns -1 when it is done parsing options,
not EOF. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10550 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/krb524')
-rw-r--r--src/krb524/ChangeLog5
-rw-r--r--src/krb524/k524init.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/krb524/ChangeLog b/src/krb524/ChangeLog
index c492ab3d8c..675070c2cf 100644
--- a/src/krb524/ChangeLog
+++ b/src/krb524/ChangeLog
@@ -1,3 +1,8 @@
+1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * k524init.c (main): POSIX states that getopt returns -1
+ when it is done parsing options, not EOF.
+
Wed Feb 18 16:04:44 1998 Tom Yu <tlyu@mit.edu>
* Makefile.in (thisconfigdir): Remove trailing slash.
diff --git a/src/krb524/k524init.c b/src/krb524/k524init.c
index 3c355a29bf..680991c442 100644
--- a/src/krb524/k524init.c
+++ b/src/krb524/k524init.c
@@ -59,7 +59,7 @@ int main(argc, argv)
exit(1);
}
- while(((option = getopt(argc, argv, "p:n")) != EOF)) {
+ while(((option = getopt(argc, argv, "p:n")) != -1)) {
switch(option) {
case 'p':
princ = optarg;