[v2,02/13] Linux: Assume __NR_execveat is defined in fexecve
Checks
Context |
Check |
Description |
redhat-pt-bot/TryBot-apply_patch |
success
|
Patch applied to master at the time it was sent
|
linaro-tcwg-bot/tcwg_glibc_build--master-arm |
success
|
Build passed
|
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 |
success
|
Build passed
|
Commit Message
It is available on all architectures.
---
sysdeps/unix/sysv/linux/fexecve.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
Comments
On 28/07/24 16:02, Florian Weimer wrote:
> It is available on all architectures.
LGTM, thanks.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
> ---
> sysdeps/unix/sysv/linux/fexecve.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/sysdeps/unix/sysv/linux/fexecve.c b/sysdeps/unix/sysv/linux/fexecve.c
> index a62a757ec3..e0e5566fd7 100644
> --- a/sysdeps/unix/sysv/linux/fexecve.c
> +++ b/sysdeps/unix/sysv/linux/fexecve.c
> @@ -39,13 +39,11 @@ fexecve (int fd, char *const argv[], char *const envp[])
> return -1;
> }
>
> -#ifdef __NR_execveat
> /* Avoid implicit array coercion in syscall macros. */
> INLINE_SYSCALL (execveat, 5, fd, "", &argv[0], &envp[0], AT_EMPTY_PATH);
> -# ifndef __ASSUME_EXECVEAT
> +#ifndef __ASSUME_EXECVEAT
> if (errno != ENOSYS)
> return -1;
> -# endif
> #endif
>
> #ifndef __ASSUME_EXECVEAT
@@ -39,13 +39,11 @@ fexecve (int fd, char *const argv[], char *const envp[])
return -1;
}
-#ifdef __NR_execveat
/* Avoid implicit array coercion in syscall macros. */
INLINE_SYSCALL (execveat, 5, fd, "", &argv[0], &envp[0], AT_EMPTY_PATH);
-# ifndef __ASSUME_EXECVEAT
+#ifndef __ASSUME_EXECVEAT
if (errno != ENOSYS)
return -1;
-# endif
#endif
#ifndef __ASSUME_EXECVEAT