Bug 13451

Summary: traceroute broken: NO OPT x!
Product: Busybox Reporter: Ronald Wahl <ronald.wahl>
Component: NetworkingAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.33.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

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.