Revert "tftpd: fix double-colon typo in option string"

It was not a typo: -d takes an optional argument, which is indicated with
a double colon.

This reverts commit 3cbc8e752b.

Spotted by:	kevans
This commit is contained in:
Dmitry Morozovsky
2023-07-21 00:38:30 +03:00
parent 3cbc8e752b
commit 615d167cb8
+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:s:Su: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;