+1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * sserver.c (main): POSIX states that getopt returns -1 when it
+ is done parsing options, not EOF.
+
Wed Feb 18 15:33:15 1998 Tom Yu <tlyu@mit.edu>
* Makefile.in: Remove trailing slash from thisconfigdir. Fix up
*
*/
opterr = 0;
- while ((ch = getopt(argc, argv, "p:S:s:")) != EOF)
+ while ((ch = getopt(argc, argv, "p:S:s:")) != -1)
switch (ch) {
case 'p':
port = atoi(optarg);
+1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * sim_client.c (main): POSIX states that getopt returns -1 when it
+ is done parsing options, not EOF.
+
Wed Feb 18 15:34:52 1998 Tom Yu <tlyu@mit.edu>
* Makefile.in: Remove trailing slash from thisconfigdir. Fix up
*
*/
opterr = 0;
- while ((ch = getopt(argc, argv, "p:m:h:s:")) != EOF)
+ while ((ch = getopt(argc, argv, "p:m:h:s:")) != -1)
switch (ch) {
case 'p':
port = atoi(optarg);
+1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * sim_server.c (argv): POSIX states that getopt returns -1 when it
+ is done parsing options, not EOF.
+
Wed Feb 18 15:35:38 1998 Tom Yu <tlyu@mit.edu>
* Makefile.in: Remove trailing slash from thisconfigdir. Fix up
*
*/
opterr = 0;
- while ((ch = getopt(argc, argv, "p:s:S:")) != EOF)
+ while ((ch = getopt(argc, argv, "p:s:S:")) != -1)
switch (ch) {
case 'p':
port = atoi(optarg);
+1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * getopt.c (getopt): POSIX states that getopt returns -1 when it
+ is done parsing options, not EOF.
+
Wed Feb 18 15:37:20 1998 Tom Yu <tlyu@mit.edu>
* Makefile.in: Remove trailing slash from thisconfigdir. Fix up
optreset = 0;
if (optind >= nargc || *(place = nargv[optind]) != '-') {
place = EMSG;
- return(EOF);
+ return(-1);
}
if (place[1] && *++place == '-') { /* found "--" */
++optind;
place = EMSG;
- return(EOF);
+ return(-1);
}
} /* option letter okay? */
if ((optopt = (int)*place++) == (int)':' ||
* assume it means EOF.
*/
if (optopt == (int)'-')
- return(EOF);
+ return(-1);
if (!*place)
++optind;
if (opterr && *ostr != ':') {
+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
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;
+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
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;
+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
}
- 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;
+1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * admin_server.c (argv): POSIX states that getopt returns -1 when
+ it is done parsing options, not EOF.
+
Wed Feb 18 16:03:53 1998 Tom Yu <tlyu@mit.edu>
* Makefile.in: Remove trailing slash from thisconfigdir. Fix up
memset(krbrlm, 0, sizeof(krbrlm));
fascist_cpw = 1; /* by default, enable fascist mode */
- while ((c = getopt(argc, argv, "f:hnd:a:r:FN")) != EOF)
+ while ((c = getopt(argc, argv, "f:hnd:a:r:FN")) != -1)
switch(c) {
case 'f': /* Syslog file name change */
prm.sysfile = optarg;
+1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * kdb5_stash.c (argv):
+ * kdb5_destroy.c (kdb5_destroy):
+ * kdb5_create.c (kdb5_create): POSIX states that getopt returns -1
+ when it is done parsing options, not EOF.
+
Fri Feb 27 23:32:38 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Makefile.in: Changed thisconfigdir to point at the kadmin
if (strrchr(argv[0], '/'))
argv[0] = strrchr(argv[0], '/')+1;
- while ((optchar = getopt(argc, argv, "s")) != EOF) {
+ while ((optchar = getopt(argc, argv, "s")) != -1) {
switch(optchar) {
case 's':
do_stash++;
dbname = global_params.dbname;
optind = 1;
- while ((optchar = getopt(argc, argv, "f")) != EOF) {
+ while ((optchar = getopt(argc, argv, "f")) != -1) {
switch(optchar) {
case 'f':
force++;
keyfile = global_params.stash_file;
optind = 1;
- while ((optchar = getopt(argc, argv, "f:")) != EOF) {
+ while ((optchar = getopt(argc, argv, "f:")) != -1) {
switch(optchar) {
case 'f':
keyfile = optarg;
+1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * kpasswd.c (main): POSIX states that getopt returns -1
+ when it is done parsing options, not EOF.
+
Fri Feb 27 23:32:38 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Makefile.in: Changed thisconfigdir to point at the kadmin
* Usage is:
* kpasswd [-u user] [-l language]
*/
- while ((option = getopt(argc, argv, kpwd_getoptstring)) != EOF) {
+ while ((option = getopt(argc, argv, kpwd_getoptstring)) != -1) {
switch (option) {
case 'u':
if ((name = (char *) malloc(strlen(optarg)+1)) == NULL) {
+1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * main.c (initialize_realms): POSIX states that getopt returns -1
+ when it is done parsing options, not EOF.
+
Fri Mar 20 17:13:46 1998 Tom Yu <tlyu@mit.edu>
* kdc_util.c (add_to_transited): Check lengths, fix up comma
* Loop through the option list. Each time we encounter a realm name,
* use the previously scanned options to fill in for defaults.
*/
- while ((c = getopt(argc, argv, "r:d:mM:k:R:e:p:s:n4:")) != EOF) {
+ while ((c = getopt(argc, argv, "r:d:mM:k:R:e:p:s:n4:")) != -1) {
switch(c) {
case 'r': /* realm name for db */
if (!find_realm_data(optarg, (krb5_ui_4) strlen(optarg))) {
+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.
exit(1);
}
- while(((option = getopt(argc, argv, "p:n")) != EOF)) {
+ while(((option = getopt(argc, argv, "p:n")) != -1)) {
switch(option) {
case 'p':
princ = optarg;
+1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * t_ktentry.c (main):
+ * t_dbentry.c (main): POSIX states that getopt returns -1
+ when it is done parsing options, not EOF.
+
Wed Feb 18 16:13:15 1998 Tom Yu <tlyu@mit.edu>
* Makefile.in: Remove trailing slash from thisconfigdir. Fix up
now = time((time_t *) NULL);
SRAND((RAND_TYPE) now);
- while ((option = getopt(argc, argv, "r:v")) != EOF) {
+ while ((option = getopt(argc, argv, "r:v")) != -1) {
switch (option) {
case 'r':
if (sscanf(optarg, "%d", &randompasses) != 1) {
now = time((time_t *) NULL);
SRAND((RAND_TYPE) now);
- while ((option = getopt(argc, argv, "r:v")) != EOF) {
+ while ((option = getopt(argc, argv, "r:v")) != -1) {
switch (option) {
case 'r':
if (sscanf(optarg, "%d", &randompasses) != 1) {
+1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * t_kdb.c (main): POSIX states that getopt returns -1
+ when it is done parsing options, not EOF.
+
Wed Apr 15 18:06:34 1998 Tom Yu <tlyu@mit.edu>
* Makefile.in (SHLIB_EXPDEPS):
hash = 0;
/* Parse argument list */
- while ((option = getopt(argc, argv, "cd:n:prstvDh")) != EOF) {
+ while ((option = getopt(argc, argv, "cd:n:prstvDh")) != -1) {
switch (option) {
case 'c':
check_cont = 1;
+1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * t_std_conf.c (main): POSIX states that getopt returns -1
+ when it is done parsing options, not EOF.
+
Fri Feb 27 18:03:33 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Makefile.in: Changed thisconfigdir to point at the lib/krb5
exit(1);
}
- while ((c = getopt(argc, argv, "dk:r:D:l:s:")) != EOF) {
+ while ((c = getopt(argc, argv, "dk:r:D:l:s:")) != -1) {
switch (c) {
case 'd': /* Get default realm */
test_get_default_realm(ctx);
--- /dev/null
+1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * getopt.c (main): POSIX states that getopt returns -1
+ when it is done parsing options, not EOF.
+
<<<other globals here>>>;
- while ((c = getopt(argc, argv, "<<<>>>")) != EOF) {
+ while ((c = getopt(argc, argv, "<<<>>>")) != -1) {
switch (c) {
<<<add cases for arguments here>>>;
case '?':
+1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * krb5_encode_test.c (PRS): POSIX states that getopt returns -1
+ when it is done parsing options, not EOF.
+
Mon Mar 30 13:51:58 1998 Ezra Peisach <epeisach@kangaroo.mit.edu>
* ktest_equal.h: Add prototypes for ktest_equal_sam_challenge and
print_constructed_length, print_skip_context,
print_skip_tagnum, print_context_shortcut;
- while ((optchar = getopt(argc, argv, "tp:")) != EOF) {
+ while ((optchar = getopt(argc, argv, "tp:")) != -1) {
switch(optchar) {
case 't':
do_trval = 1;
+1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * kdb5_mkdums.c (argv): POSIX states that getopt returns -1
+ when it is done parsing options, not EOF.
+
Mon Mar 30 16:57:43 1998 Ezra Peisach <epeisach@mit.edu>
* kdb5_mkdums.c: Add parenthesis about assignements in conditionals.
num_to_create = 0;
depth = 1;
- while ((optchar = getopt(argc, argv, "D:P:p:n:d:r:k:M:e:m")) != EOF) {
+ while ((optchar = getopt(argc, argv, "D:P:p:n:d:r:k:M:e:m")) != -1) {
switch(optchar) {
case 'D':
depth = atoi(optarg); /* how deep to go */
+1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * kdc5_hammer.c (main): POSIX states that getopt returns -1
+ when it is done parsing options, not EOF.
+
Mon Mar 30 16:48:17 1998 Ezra Peisach <epeisach@kangaroo.mit.edu>
* kdc5_hammer.c (usage): Change usage to refelect reality
errors = 0;
enctypedone = 0;
- while ((option = getopt(argc, argv, "D:p:n:c:R:k:P:e:bvr:t")) != EOF) {
+ while ((option = getopt(argc, argv, "D:p:n:c:R:k:P:e:bvr:t")) != -1) {
switch (option) {
case 't':
do_timer = 1;
+1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * kdb5_verify.c (argv): POSIX states that getopt returns -1
+ when it is done parsing options, not EOF.
+
Mon Mar 30 16:46:20 1998 Ezra Peisach <epeisach@kangaroo.mit.edu>
* kdb5_verify.c: Declare main() as int instead of void.
num_to_check = 0;
depth = 1;
- while ((optchar = getopt(argc, argv, "D:P:p:n:d:r:R:k:M:e:m")) != EOF) {
+ while ((optchar = getopt(argc, argv, "D:P:p:n:d:r:R:k:M:e:m")) != -1) {
switch(optchar) {
case 'D':
depth = atoi(optarg); /* how deep to go */
--- /dev/null
+1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * dbtest.c (main): POSIX states that getopt returns -1
+ when it is done parsing options, not EOF.
+
--- /dev/null
+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.
b.prefix = NULL;
b.lorder = 0;
- while ((c = getopt(argc, argv, "bc:di:lp:ru")) != EOF) {
+ while ((c = getopt(argc, argv, "bc:di:lp:ru")) != -1) {
switch (c) {
case 'b':
b.lorder = BIG_ENDIAN;
fname = NULL;
oflags = O_CREAT | O_RDWR | O_BINARY;
sflag = 0;
- while ((ch = getopt(argc, argv, "f:i:lo:s")) != EOF)
+ while ((ch = getopt(argc, argv, "f:i:lo:s")) != -1)
switch (ch) {
case 'f':
fname = optarg;
+1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * getopt.c (getopt): POSIX states that getopt returns -1
+ when it is done parsing options, not EOF.
optreset = 0;
if (optind >= nargc || *(place = nargv[optind]) != '-') {
place = EMSG;
- return(EOF);
+ return(-1);
}
if (place[1] && *++place == '-') { /* found "--" */
++optind;
place = EMSG;
- return(EOF);
+ return(-1);
}
} /* option letter okay? */
if ((optopt = (int)*place++) == (int)':' ||
* assume it means EOF.
*/
if (optopt == (int)'-')
- return(EOF);
+ return(-1);
if (!*place)
++optind;
if (opterr && *ostr != ':') {