]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: cleanup lxc_fill_elevated_privileges()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 16:11:14 +0000 (17:11 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 16:11:14 +0000 (17:11 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index 85a24ef7869b5259dfb8253dbdad24ef3352c1ca..58e8b946313f7f78dabf1c47497264c2e4e117b2 100644 (file)
@@ -3063,7 +3063,7 @@ int lxc_fill_elevated_privileges(char *flaglist, int *flags)
                                aflag = all_privs[i].flag;
 
                if (aflag < 0)
-                       return -1;
+                       return ret_errno(EINVAL);
 
                *flags |= aflag;
        }