diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-11-18 21:35:21 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-07-17 17:58:35 +0200 |
commit | 2f30582bd3d00ce582d190ddb379e46e0a67f813 (patch) | |
tree | 0207414de754246408c3b947ca9ae3f0690571ac /src/basic/fs-util.h | |
parent | 084937b3d7c4da3e3c48d05779f8cfbdc39a2ce6 (diff) |
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.
Diffstat (limited to 'src/basic/fs-util.h')
-rw-r--r-- | src/basic/fs-util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/fs-util.h b/src/basic/fs-util.h index 871f7209f..de4bb861e 100644 --- a/src/basic/fs-util.h +++ b/src/basic/fs-util.h @@ -42,7 +42,7 @@ int readlink_malloc(const char *p, char **r); #if 0 /// UNNEEDED by elogind int readlink_value(const char *p, char **ret); int readlink_and_make_absolute(const char *p, char **r); -int readlink_and_canonicalize(const char *p, char **r); +int readlink_and_canonicalize(const char *p, const char *root, char **r); int readlink_and_make_absolute_root(const char *root, const char *path, char **ret); #endif // 0 |