]> git.ipfire.org Git - thirdparty/systemd.git/commit
util-lib: get_current_dir_name() can return errors other than ENOMEM
authorLennart Poettering <lennart@poettering.net>
Thu, 22 Oct 2015 17:28:31 +0000 (19:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 24 Oct 2015 21:03:49 +0000 (23:03 +0200)
commit0f4743651081b5367ab06f238827ddfd4da74e74
tree43b072e7eb30af4c4c80fa451768ecd8eb14a1d9
parent85eca92e2061043d733991b386d8dc10fad0fc30
util-lib: get_current_dir_name() can return errors other than ENOMEM

get_current_dir_name() can return a variety of errors, not just ENOMEM,
hence don't blindly turn its errors to ENOMEM, but return correct errors
in path_make_absolute_cwd().

This trickles down into a couple of other functions, some of which
receive unrelated minor fixes too with this commit.
src/basic/path-util.c
src/basic/path-util.h
src/basic/selinux-util.c
src/firstboot/firstboot.c
src/journal/coredumpctl.c
src/machine/machinectl.c
src/nspawn/nspawn.c
src/shared/path-lookup.c
src/sysusers/sysusers.c
src/tmpfiles/tmpfiles.c