o Missed colon in getopt(3) argument makes tftpd(8) crash. Fix that.

PR:		misc/81732
Submitted by:	Denis Grudkin
MFC after:	2 weeks
This commit is contained in:
maxim 2005-05-31 17:22:53 +00:00
parent afb262c7d5
commit 22d9021b72

View File

@ -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;