wget: -O FILE is allowed to overwrite existing file (compat)
[oweals/busybox.git] / networking / netstat.c
index 9fd3d2f86f66d67408eb0455dfd762470eefcdf3..5bacb47cc09f16732a72c5e4dbcc0f22db56605f 100644 (file)
@@ -497,7 +497,7 @@ int netstat_main(int argc, char **argv)
 #endif
 
        /* Option string must match NETSTAT_xxx constants */
-       opt = getopt32(argc, argv, NETSTAT_OPTS);
+       opt = getopt32(argv, NETSTAT_OPTS);
        if (opt & 0x1) { // -l
                flags &= ~NETSTAT_CONNECTED;
                flags |= NETSTAT_LISTENING;