aboutsummaryrefslogtreecommitdiff
path: root/utils/shd.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu27@gmail.com>2010-05-26 23:32:16 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-08 22:49:38 +0100
commitf7c3556e627bd6ede22255defb55084d21e4dca6 (patch)
treeac2519b5429a7c0d81986838b2e306036fc7cb57 /utils/shd.c
parent4152b0ca04f4703a6c6f33e59ba0e7bd95837069 (diff)
downloadhurd-f7c3556e627bd6ede22255defb55084d21e4dca6.tar.gz
hurd-f7c3556e627bd6ede22255defb55084d21e4dca6.tar.bz2
hurd-f7c3556e627bd6ede22255defb55084d21e4dca6.zip
Use the new _hurd_exec_file_name function
* configure.in: Check for _hurd_exec_paths. * utils/fakeauth.c: Call _hurd_exec_paths instead of _hurd_exec if it's available. * utils/shd.c: Likewise. * utils/rpctrace.c: Get prefixed_name from file_name_path_lookup and pass it to _hurd_exec_paths instead of calling _hurd_exec.
Diffstat (limited to 'utils/shd.c')
-rw-r--r--utils/shd.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/utils/shd.c b/utils/shd.c
index 09a4790e..e978061c 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, 1995, 1999, 2002, 2010 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
@@ -160,15 +160,18 @@ run (char **argv, int fd0, int fd1)
movefd (fd1, 1, &save1))
return -1;
+#ifdef HAVE__HURD_EXEC_PATHS
+ err = _hurd_exec_paths (task, file, program, program, argv, environ);
+#else
err = _hurd_exec (task, file, argv, environ);
-
+#endif
if (restorefd (fd0, 0, &save0) ||
restorefd (fd1, 1, &save1))
return -1;
if (err)
{
- error (0, err, "_hurd_exec");
+ error (0, err, "_hurd_exec_paths");
err = task_terminate (task);
if (err)
error (0, err, "task_terminate");