]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
This fix is wrong, real fix in libdhcpcd.
authorRoy Marples <roy@marples.name>
Tue, 16 Sep 2014 10:22:24 +0000 (10:22 +0000)
committerRoy Marples <roy@marples.name>
Tue, 16 Sep 2014 10:22:24 +0000 (10:22 +0000)
dhcpcd.c

index 5c2fe2fac7e49d0424fbaf20a33b0eff82e0c3f2..250b9e53395ec53bf208396b256cf607db7ee73d 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -1159,10 +1159,6 @@ dhcpcd_handleargs(struct dhcpcd_ctx *ctx, struct fd_list *fd,
        free(tmp);
 
        optind = 0;
-       /* Pretend argv[0] is a program - tests show that getopt(3)
-        * still works even if the pointer is out of bounds */
-       argc++;
-       argv--;
        while ((opt = getopt_long(argc, argv, IF_OPTS, cf_options, &oi)) != -1)
        {
                switch (opt) {