Skip to content

Commit

Permalink
conf: apply /proc/sys and /proc/<pid>/ parameters
Browse files Browse the repository at this point in the history
When porting to the new list type we added an accidental ! when checking
whether the list is empty.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Nov 4, 2021
1 parent b77a9f8 commit 1d81fff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lxc/conf.c
Expand Up @@ -3288,7 +3288,7 @@ int setup_sysctl_parameters(struct lxc_conf *conf)
char filename[PATH_MAX] = {0};
struct lxc_sysctl *sysctl, *nsysctl;

if (!list_empty(&conf->sysctls))
if (list_empty(&conf->sysctls))
return 0;

list_for_each_entry_safe(sysctl, nsysctl, &conf->sysctls, head) {
Expand Down Expand Up @@ -3317,7 +3317,7 @@ int setup_proc_filesystem(struct lxc_conf *conf, pid_t pid)
char filename[PATH_MAX] = {0};
struct lxc_proc *proc;

if (!list_empty(&conf->procs))
if (list_empty(&conf->procs))
return 0;

list_for_each_entry(proc, &conf->procs, head) {
Expand Down

0 comments on commit 1d81fff

Please sign in to comment.