]> git.ipfire.org Git - thirdparty/systemd.git/commit
path-lookup: if $HOME can be determined but $XDG_RUNTIME_DIR can't, is it 5303/head
authorLennart Poettering <lennart@poettering.net>
Fri, 10 Feb 2017 14:18:23 +0000 (15:18 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 10 Feb 2017 14:18:23 +0000 (15:18 +0100)
commitc3c7eb7d7debbe2b2e708fb8d4d11f06869e0d0a
tree23a34a15b9ca87755e062e80ac98ec0367de1317
parentb9418b053aee15d1e8395dde89165fb89d9e6484
path-lookup: if $HOME can be determined but $XDG_RUNTIME_DIR can't, is it

So far, if either $HOME or $XDG_RUNTIME_DIR is not set we wouldn't use
either, and fail acquire_config_dirs() and acquire_control_dirs() in
their entireties. With this change, let's make use of the variables we
can acquire, and don't bother with the other.

Specifically this means: in both acquire_config_dirs() and
acquire_control_dirs() handle ENXIO from user_config_dir() and
user_runtime_dir() directly, instead of propagating it up and handling
it in the caller.
src/shared/path-lookup.c