summaryrefslogtreecommitdiff
path: root/file_io
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2002-01-08 03:48:18 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2002-01-08 03:48:18 +0000
commitdede259c4c1d4afe60721f5c34989e0e52d7ec84 (patch)
treedfd6485cb0c3980f4cf5f37beeaee53e08e41085 /file_io
parent1b3aca37573805e4832313220084adc4bc84cd14 (diff)
downloadlibapr-dede259c4c1d4afe60721f5c34989e0e52d7ec84.tar.gz
Ok, that was borked... here should compile :-/
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62710 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r--file_io/unix/filedup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file_io/unix/filedup.c b/file_io/unix/filedup.c
index 25fdae26b..732c9355b 100644
--- a/file_io/unix/filedup.c
+++ b/file_io/unix/filedup.c
@@ -96,7 +96,7 @@ apr_status_t apr_file_dup(apr_file_t **new_file, apr_file_t *old_file, apr_pool_
* unless you have dup2'ed fd 0-2 (stdin, stdout or stderr) which
* should never, never, never close on fork()
*/
- if (have_file && old_file->filedes >= 0 and old_file->filedes <= 2) {
+ if (have_file && ((*new_file)->filedes >= 0) && ((*new_file)->filedes <= 2)) {
(*new_file)->flags = old_file->flags | APR_INHERIT;
apr_pool_cleanup_register((*new_file)->cntxt, (void *)(*in),
apr_unix_file_cleanup, apr_pool_cleanup_null);