mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-25 20:25:27 +00:00
bionic: s/lxc_raw_execveat()/execveat()/g
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
fe2227c9fa
commit
b164903bcd
@ -41,11 +41,9 @@ int fexecve(int fd, char *const argv[], char *const envp[])
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __NR_execveat
|
execveat(fd, "", argv, envp, AT_EMPTY_PATH);
|
||||||
lxc_raw_execveat(fd, "", argv, envp, AT_EMPTY_PATH);
|
|
||||||
if (errno != ENOSYS)
|
if (errno != ENOSYS)
|
||||||
return -1;
|
return -1;
|
||||||
#endif
|
|
||||||
|
|
||||||
ret = snprintf(procfd, sizeof(procfd), "/proc/self/fd/%d", fd);
|
ret = snprintf(procfd, sizeof(procfd), "/proc/self/fd/%d", fd);
|
||||||
if (ret < 0 || (size_t)ret >= sizeof(procfd)) {
|
if (ret < 0 || (size_t)ret >= sizeof(procfd)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user