From: Roy Marples Date: Tue, 16 Sep 2014 10:22:24 +0000 (+0000) Subject: This fix is wrong, real fix in libdhcpcd. X-Git-Tag: v6.4.4~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=48cb85bd2577b014e93865d07afa6cc1413520f1;p=thirdparty%2Fdhcpcd.git This fix is wrong, real fix in libdhcpcd. --- diff --git a/dhcpcd.c b/dhcpcd.c index 5c2fe2fa..250b9e53 100644 --- 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) {