diff options
author | Theodore Tso <tytso@mit.edu> | 1998-05-06 20:24:10 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1998-05-06 20:24:10 +0000 |
commit | df85cc01656c2a234642047ea22b44b5f6a65683 (patch) | |
tree | c8eb10be62668ae2cde30336430d8145a3d30df3 /src/clients | |
parent | 376a54c9f64fbb57813e5902bd46ed63e9b2c746 (diff) | |
download | krb5-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/clients')
-rw-r--r-- | src/clients/kdestroy/ChangeLog | 5 | ||||
-rw-r--r-- | src/clients/kdestroy/kdestroy.c | 2 | ||||
-rw-r--r-- | src/clients/kinit/ChangeLog | 5 | ||||
-rw-r--r-- | src/clients/kinit/kinit.c | 2 | ||||
-rw-r--r-- | src/clients/ksu/ChangeLog | 5 | ||||
-rw-r--r-- | src/clients/ksu/main.c | 2 |
6 files changed, 18 insertions, 3 deletions
diff --git a/src/clients/kdestroy/ChangeLog b/src/clients/kdestroy/ChangeLog index 15b38506d7..428f1d3faa 100644 --- a/src/clients/kdestroy/ChangeLog +++ b/src/clients/kdestroy/ChangeLog @@ -1,3 +1,8 @@ +1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu> + + * kdestroy.c (main): POSIX states that getopt returns -1 when it + is done parsing options, not EOF. + Wed Feb 18 15:40:31 1998 Tom Yu <tlyu@mit.edu> * Makefile.in: Remove trailing slash from thisconfigdir. Fix up diff --git a/src/clients/kdestroy/kdestroy.c b/src/clients/kdestroy/kdestroy.c index 97869a316b..b52ccb246d 100644 --- a/src/clients/kdestroy/kdestroy.c +++ b/src/clients/kdestroy/kdestroy.c @@ -55,7 +55,7 @@ main(argc, argv) if (strrchr(argv[0], '/')) argv[0] = strrchr(argv[0], '/')+1; - while ((c = getopt(argc, argv, "qc:")) != EOF) { + while ((c = getopt(argc, argv, "qc:")) != -1) { switch (c) { case 'q': quiet = 1; diff --git a/src/clients/kinit/ChangeLog b/src/clients/kinit/ChangeLog index 3fadd99fa9..65bcc031eb 100644 --- a/src/clients/kinit/ChangeLog +++ b/src/clients/kinit/ChangeLog @@ -1,3 +1,8 @@ +1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu> + + * kinit.c (main): POSIX states that getopt returns -1 when it + is done parsing options, not EOF. + Wed Feb 18 15:42:14 1998 Tom Yu <tlyu@mit.edu> * Makefile.in: Remove trailing slash from thisconfigdir. Fix up diff --git a/src/clients/kinit/kinit.c b/src/clients/kinit/kinit.c index 6c3f037e60..6f7b840c98 100644 --- a/src/clients/kinit/kinit.c +++ b/src/clients/kinit/kinit.c @@ -105,7 +105,7 @@ main(argc, argv) if (strrchr(argv[0], '/')) argv[0] = strrchr(argv[0], '/')+1; - while ((option = getopt(argc, argv, "r:Rfpl:s:c:kt:vS:")) != EOF) { + while ((option = getopt(argc, argv, "r:Rfpl:s:c:kt:vS:")) != -1) { switch (option) { case 'r': options |= KDC_OPT_RENEWABLE; diff --git a/src/clients/ksu/ChangeLog b/src/clients/ksu/ChangeLog index 0f8d4b13a7..a7f563ac2d 100644 --- a/src/clients/ksu/ChangeLog +++ b/src/clients/ksu/ChangeLog @@ -1,3 +1,8 @@ +1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu> + + * main.c (main): POSIX states that getopt returns -1 when it + is done parsing options, not EOF. + Wed Feb 18 15:44:15 1998 Tom Yu <tlyu@mit.edu> * Makefile.in: Remove trailing slash from thisconfigdir. Fix up diff --git a/src/clients/ksu/main.c b/src/clients/ksu/main.c index c5daf939a3..31a255cf36 100644 --- a/src/clients/ksu/main.c +++ b/src/clients/ksu/main.c @@ -172,7 +172,7 @@ char * dir_of_cc_source; } - while(!done && ((option = getopt(pargc, pargv,"n:c:C:r:a:zZDfpkql:e:")) != EOF)){ + while(!done && ((option = getopt(pargc, pargv,"n:c:C:r:a:zZDfpkql:e:")) != -1)){ switch (option) { case 'r': options.opt |= KDC_OPT_RENEWABLE; |