]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
raw_syscalls: ensure function always returns value 2701/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 18 Oct 2018 12:38:09 +0000 (14:38 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 18 Oct 2018 12:38:09 +0000 (14:38 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/raw_syscalls.c

index 045de98214803da45bccaeec8812cbda35f40d73..c2548781d8f9bdd518f3feae7c933629ef5c1326 100644 (file)
@@ -20,8 +20,8 @@ int lxc_raw_execveat(int dirfd, const char *pathname, char *const argv[],
        syscall(__NR_execveat, dirfd, pathname, argv, envp, flags);
 #else
        errno = ENOSYS;
-       return -1;
 #endif
+       return -1;
 }
 
 /*