mirror of
https://github.com/systemd/systemd.git
synced 2025-02-03 17:47:28 +03:00
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;
|
||||
int r;
|
||||
|
||||
dirs = strv_split_nulstr(CONF_PATHS_NULSTR("environment.d"));
|
||||
dirs = strv_new(CONF_PATHS_USR("environment.d"), NULL);
|
||||
if (!dirs)
|
||||
return -ENOMEM;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user