From: Zbigniew Jędrzejewski-Szmek Date: Wed, 2 Jan 2019 16:34:55 +0000 (+0100) Subject: environment-d-generator: do not include /lib/environment.d in the list X-Git-Tag: v242-rc1~295^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3dd84d4615a1bce46f5958718a677556c791a45b;p=thirdparty%2Fsystemd.git environment-d-generator: do not include /lib/environment.d in the list This makes the code match documentation (opposite compared to previous commits). This is user configuration, hence it should not depend on stuff in /lib/ even when split-usr is used. --- diff --git a/src/environment-d-generator/environment-d-generator.c b/src/environment-d-generator/environment-d-generator.c index 9d64d95738c..b2558f0c842 100644 --- a/src/environment-d-generator/environment-d-generator.c +++ b/src/environment-d-generator/environment-d-generator.c @@ -14,7 +14,7 @@ static int environment_dirs(char ***ret) { _cleanup_free_ char *c = NULL; int r; - dirs = strv_split_nulstr(CONF_PATHS_NULSTR("environment.d")); + dirs = strv_new(CONF_PATHS_USR("environment.d"), NULL); if (!dirs) return -ENOMEM;