[lxc-devel] [lxc/master] raw_syscalls: ensure function always returns value

brauner on Github lxc-bot at linuxcontainers.org
Thu Oct 18 12:39:06 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20181018/dbe843fa/attachment.bin>
-------------- next part --------------
From e4767d470df23fc51f90196d61ec3e0acdef3a5b Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Thu, 18 Oct 2018 14:38:09 +0200
Subject: [PATCH] raw_syscalls: ensure function always returns value

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 src/lxc/raw_syscalls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/raw_syscalls.c b/src/lxc/raw_syscalls.c
index 045de9821..c2548781d 100644
--- a/src/lxc/raw_syscalls.c
+++ b/src/lxc/raw_syscalls.c
@@ -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;
 }
 
 /*


More information about the lxc-devel mailing list