Marius Tomaschewski
b6b28d718d
release, providing DHCPv6 client/server/relay implementation. The programs act in DHCPv6 mode, when the -6 start option is set. We install separate init scripts with a 6 at the end to handle them, that is /etc/init.d/dhcpd6 and dhrelay6. Further, there is also a link to the binaries with a 6 at the end, e.g. dhclient6, making it visible, that the installed version supports DHCPv6. - Moved additional documentation to a separate dhcp-doc package. - Changed to provide config files and scripts as source files instead of patches to the ISC scripts. - Adopted spec file and config/scripts, merged in all patches. - Implemented RFC 3442 classless static routes support in the dhclient-script (bnc#555870). OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=15
18 lines
481 B
Diff
18 lines
481 B
Diff
diff --git a/client/dhclient.c b/client/dhclient.c
|
|
index 69dcc91..15c31a5 100644
|
|
--- a/client/dhclient.c
|
|
+++ b/client/dhclient.c
|
|
@@ -3173,6 +3173,12 @@ int script_go (client)
|
|
*/
|
|
if (leaseFile != NULL)
|
|
fclose(leaseFile);
|
|
+ if ((i = open("/dev/null", O_RDWR)) != -1) {
|
|
+ dup2(i, STDIN_FILENO);
|
|
+ dup2(i, STDOUT_FILENO);
|
|
+ if (i > STDERR_FILENO)
|
|
+ close(i);
|
|
+ }
|
|
execve (scriptName, argv, envp);
|
|
log_error ("execve (%s, ...): %m", scriptName);
|
|
exit (0);
|