]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
pam_cgfs: return created directly
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 9 Feb 2017 10:25:30 +0000 (11:25 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 9 Feb 2017 10:37:37 +0000 (11:37 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
pam/pam_cgfs.c

index 5b61867e45ae03c6a9cc4ef48e1b84878e20ce21..a22d2f8e9dbdb42037621318cd8f08e1964b05fd 100644 (file)
@@ -2154,10 +2154,7 @@ static bool cgv1_create_one(struct cgv1_hierarchy *h, const char *cgroup, uid_t
                break;
        }
 
-       if (!created)
-               return false;
-
-       return true;
+       return created;
 }
 
 /* Try to remove @cgroup for all given controllers in a cgroupfs v1 hierarchy