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.
This commit is contained in:
parent
dc0d407851
commit
3dd84d4615
|
@ -14,7 +14,7 @@ static int environment_dirs(char ***ret) {
|
||||||
_cleanup_free_ char *c = NULL;
|
_cleanup_free_ char *c = NULL;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
dirs = strv_split_nulstr(CONF_PATHS_NULSTR("environment.d"));
|
dirs = strv_new(CONF_PATHS_USR("environment.d"), NULL);
|
||||||
if (!dirs)
|
if (!dirs)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue