Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
dhcp.24175
0005-dhcp-4.1.1-dhclient-exec-filedes.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0005-dhcp-4.1.1-dhclient-exec-filedes.patch of Package dhcp.24175
From 92a611b4b05ef420e81c2c78f8c1eb3b38c31627 Mon Sep 17 00:00:00 2001 From: Marius Tomaschewski <mt@suse.de> Date: Thu, 18 Aug 2011 10:28:04 +0200 Subject: [PATCH] dhcp-4.1.1-dhclient-exec-filedes --- client/dhclient.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/dhclient.c b/client/dhclient.c index 52121be..203d3d1 100644 --- a/client/dhclient.c +++ b/client/dhclient.c @@ -3369,6 +3369,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); -- 1.8.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor