about summary refs log tree commit diff
path: root/hurd/hurdinit.c
diff options
context:
space:
mode:
Diffstat (limited to 'hurd/hurdinit.c')
-rw-r--r--hurd/hurdinit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hurd/hurdinit.c b/hurd/hurdinit.c
index 7d946b8bff..df10b5d955 100644
--- a/hurd/hurdinit.c
+++ b/hurd/hurdinit.c
@@ -165,6 +165,7 @@ _hurd_setproc (process_t procserver)
 {
   error_t err;
   mach_port_t oldmsg;
+  extern char **__libc_argv;
 
   /* Give the proc server our message port.  */
   if (err = __proc_setmsgport (procserver, _hurd_msgport, &oldmsg))
@@ -175,8 +176,8 @@ _hurd_setproc (process_t procserver)
 
   /* Tell the proc server where our args and environment are.  */
   if (err = __proc_set_arg_locations (procserver,
-				      /* We don't know the ARGV location.  */
-				      (vm_address_t) 0,
+				      _hide_arguments ? 0 :
+				      (vm_address_t) __libc_argv,
 				      _hide_environment ? 0 :
 				      (vm_address_t) __environ))
     return err;