diff options
Diffstat (limited to 'usr.bin/ftp')
-rw-r--r-- | usr.bin/ftp/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c index 33e6a1b..7237c06 100644 --- a/usr.bin/ftp/main.c +++ b/usr.bin/ftp/main.c @@ -89,7 +89,7 @@ main(argc, argv) if (getenv("FTP_PASSIVE_MODE") || strcmp(cp, "pftp") == 0) passivemode = 1; - while ((ch = getopt(argc, argv, "dginptvU")) != EOF) { + while ((ch = getopt(argc, argv, "dginptvU")) != -1) { switch (ch) { case 'd': options |= SO_DEBUG; |