]> sourceware.org Git - glibc.git/commit
hurd: Use the new file_exec_paths RPC
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 9 Jan 2018 00:36:58 +0000 (01:36 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 9 Jan 2018 00:37:34 +0000 (01:37 +0100)
commit311ba8dc4416467947eff2ab327854f124226309
treead9a00d6a87de80ddc241b60b2d52aad971fa10e
parentd7ff3f11b64a28273285d341f795217bbf18ac9c
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.
ChangeLog
hurd/Versions
hurd/hurd.h
hurd/hurdexec.c
sysdeps/mach/hurd/execve.c
sysdeps/mach/hurd/fexecve.c
sysdeps/mach/hurd/spawni.c
This page took 0.044326 seconds and 5 git commands to generate.