From: Christian Brauner Date: Thu, 4 Nov 2021 10:26:00 +0000 (+0100) Subject: conf: apply /proc/sys and /proc// parameters X-Git-Tag: lxc-5.0.0~54^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d81fffe866307d53e95ac18b6d1708cb4c32319;p=thirdparty%2Flxc.git conf: apply /proc/sys and /proc// parameters When porting to the new list type we added an accidental ! when checking whether the list is empty. Signed-off-by: Christian Brauner --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 8e068b8ac..0885b5921 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -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) { @@ -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) {