chiark / gitweb /
util-lib: rename CHASE_NON_EXISTING → CHASE_NONEXISTENT
authorLennart Poettering <lennart@poettering.net>
Thu, 1 Dec 2016 11:49:23 +0000 (12:49 +0100)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:35 +0000 (17:58 +0200)
As suggested by @keszybz

src/basic/fs-util.c
src/basic/fs-util.h

index be4c6a9faf41343f46a710ea827b33edfc18b0b1..4d494650cb916cfcd3fa697cb2884449d44f331a 100644 (file)
@@ -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. */
 
index e206a382ec7d94e6fce0f2fcaee18a2d93f80bc5..d925cc2d054086ec70e34d363060d52cf036acd5 100644 (file)
@@ -93,7 +93,7 @@ int inotify_add_watch_fd(int fd, int what, uint32_t mask);
 #endif // 0
 enum {
         CHASE_PREFIX_ROOT = 1,   /* If set, the specified path will be prefixed by the specified root before beginning the iteration */
-        CHASE_NON_EXISTING = 2,  /* If set, it's OK if the path doesn't actually exist. */
+        CHASE_NONEXISTENT = 2,   /* If set, it's OK if the path doesn't actually exist. */
 };
 
 int chase_symlinks(const char *path_with_prefix, const char *root, unsigned flags, char **ret);