X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbasic%2Ffs-util.c;h=4d494650cb916cfcd3fa697cb2884449d44f331a;hp=be4c6a9faf41343f46a710ea827b33edfc18b0b1;hb=4d207ba52cb963c2ebec17bfc4300d570aa43846;hpb=aa63b97173e12293234cce3b378912eb761778e1 diff --git a/src/basic/fs-util.c b/src/basic/fs-util.c index be4c6a9fa..4d494650c 100644 --- a/src/basic/fs-util.c +++ b/src/basic/fs-util.c @@ -716,10 +716,10 @@ int chase_symlinks(const char *path, const char *original_root, unsigned flags, if (child < 0) { if (errno == ENOENT && - (flags & CHASE_NON_EXISTING) && + (flags & CHASE_NONEXISTENT) && (isempty(todo) || path_is_safe(todo))) { - /* If CHASE_NON_EXISTING is set, and the path does not exist, then that's OK, return + /* If CHASE_NONEXISTENT is set, and the path does not exist, then that's OK, return * what we got so far. But don't allow this if the remaining path contains "../ or "./" * or something else weird. */