(main): getopt returns -1 not EOF. From <art@stacken.kth.se>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7380 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -169,7 +169,7 @@ main(int argc, char **argv)
|
||||
highpty = getnpty();
|
||||
#endif /* CRAY */
|
||||
|
||||
while ((ch = getopt(argc, argv, valid_opts)) != EOF) {
|
||||
while ((ch = getopt(argc, argv, valid_opts)) != -1) {
|
||||
switch(ch) {
|
||||
|
||||
#ifdef AUTHENTICATION
|
||||
|
||||
Reference in New Issue
Block a user