[PATCH] [BZ #18433] Check file access/existence before forking.
Szabolcs Nagy
szabolcs.nagy@arm.com
Thu Sep 10 15:02:00 GMT 2015
On 10/09/15 15:47, Navid Rahimi wrote:
> [BZ #18433]
> * sysdeps/posix/spawni.c (__spawni):
> Check file access before forking.
> ---
> +++ b/sysdeps/posix/spawni.c
> @@ -90,6 +90,9 @@ __spawni (pid_t *pid, const char *file,
> size_t len;
> size_t pathlen;
>
> + if(__access (file, X_OK) != 0)
> + return errno;
> +
this does not guarantee the success of __execve (file, argv, envp).
More information about the Libc-alpha
mailing list