Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jul 2023 21:40:08 GMT
From:      Dmitry Morozovsky <marck@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 615d167cb88c - main - Revert "tftpd: fix double-colon typo in option string"
Message-ID:  <202307202140.36KLe81O022891@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by marck:

URL: https://cgit.FreeBSD.org/src/commit/?id=615d167cb88ca895278a26b22052f663c5228407

commit 615d167cb88ca895278a26b22052f663c5228407
Author:     Dmitry Morozovsky <marck@FreeBSD.org>
AuthorDate: 2023-07-20 21:38:30 +0000
Commit:     Dmitry Morozovsky <marck@FreeBSD.org>
CommitDate: 2023-07-20 21:38:30 +0000

    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 3cbc8e752b92442c784306731e94fd904de3373c.
    
    Spotted by:     kevans
---
 libexec/tftpd/tftpd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libexec/tftpd/tftpd.c b/libexec/tftpd/tftpd.c
index 27bb7cb4cc67..1c04cd113932 100644
--- a/libexec/tftpd/tftpd.c
+++ b/libexec/tftpd/tftpd.c
@@ -142,7 +142,7 @@ main(int argc, char *argv[])
 	acting_as_client = 0;
 
 	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) {
 		case 'c':
 			ipchroot = 1;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307202140.36KLe81O022891>