summaryrefslogtreecommitdiff
path: root/src/basic/fs-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-04-04 17:06:12 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commit206dc15a7a29cae1b42521812faf87e0888e07c0 (patch)
treedd15beb847d253ab5be48f994328057f8fc76228 /src/basic/fs-util.c
parentdf4fe5c7fc39a5241713516cc3ab12449b3e5459 (diff)
fs-util: export how many iterations chase_symlinks() executes at max
Diffstat (limited to 'src/basic/fs-util.c')
-rw-r--r--src/basic/fs-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/fs-util.c b/src/basic/fs-util.c
index 890a20a3e..7ccd6da21 100644
--- a/src/basic/fs-util.c
+++ b/src/basic/fs-util.c
@@ -597,7 +597,7 @@ static bool safe_transition(const struct stat *a, const struct stat *b) {
int chase_symlinks(const char *path, const char *original_root, unsigned flags, char **ret) {
_cleanup_free_ char *buffer = NULL, *done = NULL, *root = NULL;
_cleanup_close_ int fd = -1;
- unsigned max_follow = 32; /* how many symlinks to follow before giving up and returning ELOOP */
+ unsigned max_follow = CHASE_SYMLINKS_MAX; /* how many symlinks to follow before giving up and returning ELOOP */
struct stat previous_stat;
bool exists = true;
char *todo;