]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
The args sent from control socket do not include a program in argv[0]
authorRoy Marples <roy@marples.name>
Mon, 15 Sep 2014 22:35:00 +0000 (22:35 +0000)
committerRoy Marples <roy@marples.name>
Mon, 15 Sep 2014 22:35:00 +0000 (22:35 +0000)
commitf49ebfb64084ab718c9b38dbea88d0b9b2da7363
tree0b72faa0f94cf89d304048c0639e073eb9f49d6e
parentddc3433bb0d31d76d2b6ef53244b453a34c6060b
The args sent from control socket do not include a program in argv[0]
so we need to adjustem them to pretend that they do.
Tests show that getopt(3) doesn't look at argv[0] so it's safe(ish).
dhcpcd.c