Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jul 2023 20:28:27 GMT
From:      Eugene Grosbein <eugen@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 03c2616dc530 - main - tftpd: unbreak getopt()
Message-ID:  <202307202028.36KKSRww003446@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=03c2616dc530e5b23f06f9aa421012154590e578

commit 03c2616dc530e5b23f06f9aa421012154590e578
Author:     Eugene Grosbein <eugen@FreeBSD.org>
AuthorDate: 2023-07-20 20:26:32 +0000
Commit:     Eugene Grosbein <eugen@FreeBSD.org>
CommitDate: 2023-07-20 20:26:32 +0000

    tftpd: unbreak getopt()
    
    Unbreak getopt() broken by recent commit.
    
    Fixes:          273a307d0b80743fb08e23237b3f74dc94a8fa2a
    MFC after:      1 month
---
 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 9ae7575f3d23..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:sS:u: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?202307202028.36KKSRww003446>