[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/3] Use the new _hurd_exec_file_name function
From: |
Emilio Pozuelo Monfort |
Subject: |
[PATCH 3/3] Use the new _hurd_exec_file_name function |
Date: |
Wed, 26 May 2010 23:32:16 +0200 |
---
utils/fakeauth.c | 6 +++---
utils/rpctrace.c | 4 ++--
utils/shd.c | 6 +++---
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/utils/fakeauth.c b/utils/fakeauth.c
index 49fa7f1..ccc0855 100644
--- a/utils/fakeauth.c
+++ b/utils/fakeauth.c
@@ -1,5 +1,5 @@
/* fakeauth -- proxy auth server to lie to users about what their IDs are
- Copyright (C) 2002 Free Software Foundation, Inc.
+ Copyright (C) 2002,10 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -388,7 +388,7 @@ believe it has restricted them to different identities or
no identity at all.\
/* We cannot use fork because it doesn't do the right thing with our send
rights that point to our own receive rights, i.e. the new auth port.
Since posix_spawn might be implemented with fork (prior to glibc 2.3),
- we cannot use that simple interface either. We use _hurd_exec
+ we cannot use that simple interface either. We use _hurd_exec_file_name
directly to effect what posix_spawn does in the simple case. */
{
task_t newtask;
@@ -413,7 +413,7 @@ believe it has restricted them to different identities or
no identity at all.\
if (err)
error (3, err, "proc_child");
- err = _hurd_exec (newtask, execfile, &argv[argi], environ);
+ err = _hurd_exec_file_name (newtask, execfile, argv[argi], &argv[argi],
environ);
mach_port_deallocate (mach_task_self (), newtask);
mach_port_deallocate (mach_task_self (), execfile);
if (err)
diff --git a/utils/rpctrace.c b/utils/rpctrace.c
index 5182449..c041c8f 100644
--- a/utils/rpctrace.c
+++ b/utils/rpctrace.c
@@ -1,6 +1,6 @@
/* Trace RPCs sent to selected ports
- Copyright (C) 1998, 1999, 2001, 2002, 2003, 2005, 2006, 2009
+ Copyright (C) 1998, 1999, 2001, 2002, 2003, 2005, 2006, 2009, 2010
Free Software Foundation, Inc.
This file is part of the GNU Hurd.
@@ -1062,7 +1062,7 @@ traced_spawn (char **argv, char **envp)
/* Now actually run the command they told us to trace. We do the exec on
the actual task, so the RPCs to map in the program itself do not get
traced. Could have an option to use TASK_WRAPPER here instead. */
- err = _hurd_exec (traced_task, file, argv, envp);
+ err = _hurd_exec_file_name (traced_task, file, *argv, argv, envp);
if (err)
error (2, err, "cannot exec `%s'", argv[0]);
diff --git a/utils/shd.c b/utils/shd.c
index 0587fa4..95b3ad1 100644
--- a/utils/shd.c
+++ b/utils/shd.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1994,95,99,2002 Free Software Foundation
+ Copyright (C) 1994,95,99,2002,10 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -159,7 +159,7 @@ run (char **argv, int fd0, int fd1)
movefd (fd1, 1, &save1))
return -1;
- err = _hurd_exec (task, file, argv, environ);
+ err = _hurd_exec_file_name (task, file, program, argv, environ);
if (restorefd (fd0, 0, &save0) ||
restorefd (fd1, 1, &save1))
@@ -167,7 +167,7 @@ run (char **argv, int fd0, int fd1)
if (err)
{
- error (0, err, "_hurd_exec");
+ error (0, err, "_hurd_exec_file_name");
err = task_terminate (task);
if (err)
error (0, err, "task_terminate");
--
1.7.1
- Re: exec server and /dev/fd/N, (continued)
- [PATCH] Use the new __hurd_exec_file_name RPC, Emilio Pozuelo Monfort, 2010/05/27
- Re: [PATCH] Use the new __hurd_exec_file_name RPC, Carl Fredrik Hammar, 2010/05/31
- Re: [PATCH] Use the new __hurd_exec_file_name RPC, olafBuddenhagen, 2010/05/31
- [PATCH 3/3] Use the new _hurd_exec_file_name function,
Emilio Pozuelo Monfort <=
- Re: [PATCH 3/3] Use the new _hurd_exec_file_name function, Carl Fredrik Hammar, 2010/05/31
- [PATCH 2/3] Add a file_exec_file_name RPC, Emilio Pozuelo Monfort, 2010/05/27
- Re: [PATCH 2/3] Add a file_exec_file_name RPC, Carl Fredrik Hammar, 2010/05/31
- Re: exec server and /dev/fd/N, Carl Fredrik Hammar, 2010/05/31
- Re: exec server and /dev/fd/N, Carl Fredrik Hammar, 2010/05/31
Re: exec server and /dev/fd/N, olafBuddenhagen, 2010/05/26