Bug 13451 - traceroute broken: NO OPT x!
Summary: traceroute broken: NO OPT x!
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: 1.33.x
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-15 18:09 UTC by Ronald Wahl
Modified: 2021-02-02 12:48 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ronald Wahl 2021-01-15 18:09:54 UTC
# traceroute 8.8.8.8
traceroute: NO OPT x!

Not sure if this is the right fix, but it works:


diff --git a/busybox/networking/traceroute.c b/busybox/networking/traceroute.c
index 3f1a9ab46d1d3..29f5e480b6d47 100644
--- a/busybox/networking/traceroute.c
+++ b/busybox/networking/traceroute.c
@@ -896,7 +896,7 @@ traceroute_init(int op, char **argv)
 
        op |= getopt32(argv, "^"
                OPT_STRING
-               "\0" "-1:x-x" /* minimum 1 arg */
+               "\0" "-1" /* minimum 1 arg */
                , &tos_str, &device, &max_ttl_str, &port_str, &nprobes_str
                , &source, &waittime_str, &pausemsecs_str, &first_ttl_str
        );
Comment 1 Denys Vlasenko 2021-02-02 12:48:48 UTC
Fixed in git.