chiark / gitweb /
tree-wide: stop using canonicalize_file_name(), use chase_symlinks() instead
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Nov 2016 20:35:21 +0000 (21:35 +0100)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:35 +0000 (17:58 +0200)
commit2f30582bd3d00ce582d190ddb379e46e0a67f813
tree0207414de754246408c3b947ca9ae3f0690571ac
parent084937b3d7c4da3e3c48d05779f8cfbdc39a2ce6
tree-wide: stop using canonicalize_file_name(), use chase_symlinks() instead

Let's use chase_symlinks() everywhere, and stop using GNU
canonicalize_file_name() everywhere. For most cases this should not change
behaviour, however increase exposure of our function to get better tested. Most
importantly in a few cases (most notably nspawn) it can take the correct root
directory into account when chasing symlinks.
src/basic/fs-util.c
src/basic/fs-util.h
src/basic/mount-util.c
src/basic/mount-util.h
src/basic/path-util.c
src/basic/path-util.h
src/core/mount-setup.c
src/login/logind-user.c