Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144431865
D38965.id118619.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
634 B
Referenced Files
None
Subscribers
None
D38965.id118619.diff
View Options
diff --git a/libexec/tftpd/tftpd.c b/libexec/tftpd/tftpd.c
--- a/libexec/tftpd/tftpd.c
+++ b/libexec/tftpd/tftpd.c
@@ -140,7 +140,7 @@
acting_as_client = 0;
tftp_openlog("tftpd", LOG_PID | LOG_NDELAY, LOG_FTP);
- while ((ch = getopt(argc, argv, "cCd:F:lnoOp:s:u:U:wW")) != -1) {
+ while ((ch = getopt(argc, argv, "cCd::F:lnoOp:s:u:U:wW")) != -1) {
switch (ch) {
case 'c':
ipchroot = 1;
@@ -149,7 +149,9 @@
ipchroot = 2;
break;
case 'd':
- if (atoi(optarg) != 0)
+ if (optarg == NULL)
+ debug++;
+ else if (atoi(optarg) != 0)
debug += atoi(optarg);
else
debug |= debug_finds(optarg);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 10:11 AM (6 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28566607
Default Alt Text
D38965.id118619.diff (634 B)
Attached To
Mode
D38965: tftpd: Make the -d option behave as documented.
Attached
Detach File
Event Timeline
Log In to Comment