summaryrefslogtreecommitdiff
path: root/lib/execute.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/execute.c')
-rw-r--r--lib/execute.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/execute.c b/lib/execute.c
index cb72343f80..ea9388034b 100644
--- a/lib/execute.c
+++ b/lib/execute.c
@@ -70,6 +70,11 @@ extern char **environ;
# define STDERR_FILENO 2
#endif
+/* The results of open() in this file are not used with fchdir,
+ therefore save some unnecessary work in fchdir.c. */
+#undef open
+#undef close
+
#ifdef EINTR