From abd3cd171111eb369972d8df5972b15cb145c107 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 12 Apr 2001 15:15:55 +0000 Subject: close fdno's of the pipe which are unused or dup2'ed --- ldetect.spec | 5 ++++- pciusb.c | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ldetect.spec b/ldetect.spec index 367cfd4..543c235 100644 --- a/ldetect.spec +++ b/ldetect.spec @@ -1,7 +1,7 @@ # !! DON'T MODIFY HERE, MODIFY IN THE CVS !! %define name ldetect %define version 0.2.3 -%define release 12mdk +%define release 13mdk Name: %{name} Version: %{version} @@ -53,6 +53,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/* %changelog +* Thu Apr 12 2001 Pixel 0.2.3-13mdk +- close fdno's of the pipe which are unused or dup2'ed + * Wed Apr 11 2001 François Pons 0.2.3-12mdk - fixed to use LD_LOADER if defined. diff --git a/pciusb.c b/pciusb.c index 18abdc0..37f3edb 100644 --- a/pciusb.c +++ b/pciusb.c @@ -44,6 +44,8 @@ static fh fh_open(char *fname) { cmd[ip++] = NULL; dup2(fdno[1], STDOUT_FILENO); + close(fdno[0]); + close(fdno[1]); execvp(cmd[0], cmd); perror("pciusb"); exit(2); } -- cgit v1.2.1