From: Theodore Tso Date: Wed, 6 May 1998 20:01:28 +0000 (+0000) Subject: POSIX states that getopt returns -1 when it is done parsing options, X-Git-Tag: krb5-1.1-beta1~738 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=10a3fb38d317752688e0dfe8729939908b99a87c;p=krb5.git POSIX states that getopt returns -1 when it is done parsing options, not EOF. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10548 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/gssftp/ftp/ChangeLog b/src/appl/gssftp/ftp/ChangeLog index 08c18dc5b..2bad1481d 100644 --- a/src/appl/gssftp/ftp/ChangeLog +++ b/src/appl/gssftp/ftp/ChangeLog @@ -1,3 +1,8 @@ +1998-05-06 Theodore Ts'o + + * radix.c (argv): POSIX states that getopt returns -1 when it + is done parsing options, not EOF. + Sat Apr 25 01:53:04 1998 Sam Hartman * cmds.c (setpeer): Fix so that autologin is respected again diff --git a/src/appl/gssftp/ftp/radix.c b/src/appl/gssftp/ftp/radix.c index c651ef576..bba641f40 100644 --- a/src/appl/gssftp/ftp/radix.c +++ b/src/appl/gssftp/ftp/radix.c @@ -120,7 +120,7 @@ char *argv[]; int c, len = 0, decode = 0; extern int optind; - while ((c = getopt(argc, argv, "d")) != EOF) + while ((c = getopt(argc, argv, "d")) != -1) switch(c) { default: usage(argv[0]);