about summary refs log tree commit diff
path: root/hurd
diff options
context:
space:
mode:
Diffstat (limited to 'hurd')
-rw-r--r--hurd/fchroot.c1
-rw-r--r--hurd/hurdexec.c14
2 files changed, 8 insertions, 7 deletions
diff --git a/hurd/fchroot.c b/hurd/fchroot.c
index 37163c0277..26ff6d9081 100644
--- a/hurd/fchroot.c
+++ b/hurd/fchroot.c
@@ -20,6 +20,7 @@ Cambridge, MA 02139, USA.  */
 #include <unistd.h>
 #include <hurd.h>
 #include <hurd/fd.h>
+#include <fcntl.h>
 
 /* Change the current root directory to FD.  */
 int
diff --git a/hurd/hurdexec.c b/hurd/hurdexec.c
index 2f38679ff2..0ac18e42da 100644
--- a/hurd/hurdexec.c
+++ b/hurd/hurdexec.c
@@ -217,14 +217,14 @@ _hurd_exec (task_t task, file_t file,
 	  *pdp++ = dtable[i];
       }
 
-    err = __file_exec (file, task, MACH_MSG_TYPE_COPY_SEND,
+    err = __file_exec (file, task,
 		       _hurd_exec_flags & EXEC_INHERITED,
-		       args, argslen, 0, env, envlen, 0,
-		       dtable, MACH_MSG_TYPE_COPY_SEND, dtablesize,  0,
-		       ports, MACH_MSG_TYPE_COPY_SEND, _hurd_nports, 0,
-		       ints, INIT_INT_MAX, 0,
-		       please_dealloc, pdp - please_dealloc, 0,
-		       NULL, 0, 0);
+		       args, argslen, env, envlen,
+		       dtable, MACH_MSG_TYPE_COPY_SEND, dtablesize,
+		       ports, MACH_MSG_TYPE_COPY_SEND, _hurd_nports,
+		       ints, INIT_INT_MAX,
+		       please_dealloc, pdp - please_dealloc,
+		       NULL, 0);
   }
 
   /* Release references to the standard ports.  */