diff options
author | Emilio Pozuelo Monfort <pochu27@gmail.com> | 2010-05-26 23:32:16 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-01-08 22:49:38 +0100 |
commit | f7c3556e627bd6ede22255defb55084d21e4dca6 (patch) | |
tree | ac2519b5429a7c0d81986838b2e306036fc7cb57 /utils/rpctrace.c | |
parent | 4152b0ca04f4703a6c6f33e59ba0e7bd95837069 (diff) | |
download | hurd-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/rpctrace.c')
-rw-r--r-- | utils/rpctrace.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/rpctrace.c b/utils/rpctrace.c index 0aecfc42..1690ae1b 100644 --- a/utils/rpctrace.c +++ b/utils/rpctrace.c @@ -1661,7 +1661,11 @@ 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. */ +#ifdef HAVE__HURD_EXEC_PATHS + err = _hurd_exec_paths (traced_task, file, *argv, *argv, argv, envp); +#else err = _hurd_exec (traced_task, file, argv, envp); +#endif if (err) error (2, err, "cannot exec `%s'", argv[0]); |