From f7c3556e627bd6ede22255defb55084d21e4dca6 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Wed, 26 May 2010 23:32:16 +0200 Subject: 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. --- utils/shd.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'utils/shd.c') 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"); -- cgit v1.2.3