tftpd: unbreak getopt()

Unbreak getopt() broken by recent commit.

Fixes:		273a307d0b
MFC after:	1 month
This commit is contained in:
Eugene Grosbein
2023-07-21 03:26:32 +07:00
parent 273a307d0b
commit 03c2616dc5
+1 -1
View File
@@ -142,7 +142,7 @@ main(int argc, char *argv[])
acting_as_client = 0; acting_as_client = 0;
tftp_openlog("tftpd", LOG_PID | LOG_NDELAY, LOG_FTP); tftp_openlog("tftpd", LOG_PID | LOG_NDELAY, LOG_FTP);
while ((ch = getopt(argc, argv, "cCd::F:lnoOp:sS:u:U:wW")) != -1) { while ((ch = getopt(argc, argv, "cCd::F:lnoOp:s:Su:U:wW")) != -1) {
switch (ch) { switch (ch) {
case 'c': case 'c':
ipchroot = 1; ipchroot = 1;