34a5dc1e28
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=3e128ea1dfe1f438c5c539850885a0ad
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);
|