diff options
author | maxim <maxim@FreeBSD.org> | 2005-05-31 17:22:53 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2005-05-31 17:22:53 +0000 |
commit | 7a5321874fcc82857db796bcd6b5b54de0fbd1e0 (patch) | |
tree | eb4d04d4ba6b634bf4de762763e24c314d044af6 /libexec | |
parent | 055ba01ea7c6572a5b77318abf1834df648ee640 (diff) | |
download | FreeBSD-src-7a5321874fcc82857db796bcd6b5b54de0fbd1e0.zip FreeBSD-src-7a5321874fcc82857db796bcd6b5b54de0fbd1e0.tar.gz |
o Missed colon in getopt(3) argument makes tftpd(8) crash. Fix that.
PR: misc/81732
Submitted by: Denis Grudkin
MFC after: 2 weeks
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/tftpd/tftpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/tftpd/tftpd.c b/libexec/tftpd/tftpd.c index 9c1ec2a..7958bbb 100644 --- a/libexec/tftpd/tftpd.c +++ b/libexec/tftpd/tftpd.c @@ -134,7 +134,7 @@ main(int argc, char *argv[]) tzset(); /* syslog in localtime */ openlog("tftpd", LOG_PID | LOG_NDELAY, LOG_FTP); - while ((ch = getopt(argc, argv, "cClns:u:Uw")) != -1) { + while ((ch = getopt(argc, argv, "cClns:u:U:w")) != -1) { switch (ch) { case 'c': ipchroot = 1; |