diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-01-09 01:36:58 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-01-09 01:37:34 +0100 |
commit | 311ba8dc4416467947eff2ab327854f124226309 (patch) | |
tree | ad9a00d6a87de80ddc241b60b2d52aad971fa10e /ChangeLog | |
parent | d7ff3f11b64a28273285d341f795217bbf18ac9c (diff) | |
download | glibc-311ba8dc4416467947eff2ab327854f124226309.tar glibc-311ba8dc4416467947eff2ab327854f124226309.tar.gz glibc-311ba8dc4416467947eff2ab327854f124226309.tar.bz2 glibc-311ba8dc4416467947eff2ab327854f124226309.zip |
hurd: Use the new file_exec_paths RPC
From: Emilio Pozuelo Monfort <pochu27@gmail.com>
From: Svante Signell <svante.signell@gmail.com>
Pass the file paths of executable to the exec server, both relative and
absolute, which exec needs to properly execute and avertise #!-scripts.
Previously, the exec server tried to guess the name from argv[0] but argv[0]
only contains the executable name by convention.
* hurd/hurdexec.c (_hurd_exec): Deprecate function.
(_hurd_exec_paths): New function.
* hurd/hurd.h (_hurd_exec): Deprecate function.
(_hurd_exec_paths): Declare function.
* hurd/Versions: Export _hurd_exec_paths.
* sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
(__execve): Use __getcwd to build absolute path, and use
_hurd_exec_paths instead of _hurd_exec.
* sysdeps/mach/hurd/spawni.c: Likewise.
* sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
_hurd_exec.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -1,3 +1,18 @@ +2010-08-04 Emilio Pozuelo Monfort <pochu27@gmail.com> +2017-09-26 Svante Signell <svante.signell@gmail.com> + + * hurd/hurdexec.c (_hurd_exec): Deprecate function. + (_hurd_exec_paths): New function. + * hurd/hurd.h (_hurd_exec): Deprecate function. + (_hurd_exec_paths): Declare function. + * hurd/Versions: Export _hurd_exec_paths. + * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h> + (__execve): Use __getcwd to build absolute path, and use + _hurd_exec_paths instead of _hurd_exec. + * sysdeps/mach/hurd/spawni.c: Likewise. + * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of + _hurd_exec. + 2018-01-08 Dmitry V. Levin <ldv@altlinux.org> * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the |