chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util-lib: rename CHASE_NON_EXISTING → CHASE_NONEXISTENT
[elogind.git]
/
src
/
basic
/
fs-util.c
diff --git
a/src/basic/fs-util.c
b/src/basic/fs-util.c
index be4c6a9faf41343f46a710ea827b33edfc18b0b1..4d494650cb916cfcd3fa697cb2884449d44f331a 100644
(file)
--- 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 &&
if (child < 0) {
if (errno == ENOENT &&
- (flags & CHASE_NON
_EXISTING
) &&
+ (flags & CHASE_NON
EXISTENT
) &&
(isempty(todo) || path_is_safe(todo))) {
(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_NON
EXISTENT
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. */
* what we got so far. But don't allow this if the remaining path contains "../ or "./"
* or something else weird. */