aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-02-22 05:24:06 +0000
committerBill Nottingham <notting@redhat.com>2001-02-22 05:24:06 +0000
commit51d8bd3f8e9ba48ae729ac138ebf31ef15d5cdbd (patch)
tree7142ab9b4568c6277f8bab2de18f648dda40543f /src
parentdb30b392d38f0fd88fdfdacb7c361e8cef2c0bae (diff)
downloadinitscripts-51d8bd3f8e9ba48ae729ac138ebf31ef15d5cdbd.tar
initscripts-51d8bd3f8e9ba48ae729ac138ebf31ef15d5cdbd.tar.gz
initscripts-51d8bd3f8e9ba48ae729ac138ebf31ef15d5cdbd.tar.bz2
initscripts-51d8bd3f8e9ba48ae729ac138ebf31ef15d5cdbd.tar.xz
initscripts-51d8bd3f8e9ba48ae729ac138ebf31ef15d5cdbd.zip
fix fixr5-66
Diffstat (limited to 'src')
-rw-r--r--src/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c
index a880791a..4ff805ef 100644
--- a/src/process.c
+++ b/src/process.c
@@ -115,7 +115,7 @@ int forkCommand(char **args, int *outfd, int *errfd, int *cmdfd, int quiet) {
if(sc_open_max > 1) {
int fd;
for(fd = 3; fd < sc_open_max; fd++) {
- if (cmdfd && fd != CMD_FD)
+ if (!(cmdfd && fd == CMD_FD))
close(fd);
}
}