Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
dhcp.32328
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.32328
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