]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
bionic: s/lxc_raw_execveat()/execveat()/g 3418/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 18 May 2020 18:02:37 +0000 (20:02 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 18 May 2020 18:02:37 +0000 (20:02 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/include/fexecve.c

index 0627cc802d4b2da2bc7535a9f1d429f534cfb149..40d2b5b46de0cc001165c7aa22ba13e57751df15 100644 (file)
@@ -41,11 +41,9 @@ int fexecve(int fd, char *const argv[], char *const envp[])
                return -1;
        }
 
-#ifdef __NR_execveat
-       lxc_raw_execveat(fd, "", argv, envp, AT_EMPTY_PATH);
+       execveat(fd, "", argv, envp, AT_EMPTY_PATH);
        if (errno != ENOSYS)
                return -1;
-#endif
 
        ret = snprintf(procfd, sizeof(procfd), "/proc/self/fd/%d", fd);
        if (ret < 0 || (size_t)ret >= sizeof(procfd)) {