]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkdir: CHASE_NONEXISTENT cannot used in chase_symlinks_and_stat()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 2 Feb 2022 06:06:27 +0000 (15:06 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 2 Feb 2022 06:09:45 +0000 (15:09 +0900)
src/basic/mkdir.c

index 6e2b94d024ee916c2244aa9d3d22cc03b2a0f4e5..71ed24c589670724a670cfaa8b7d7493c0cfd277 100644 (file)
@@ -42,7 +42,7 @@ int mkdir_safe_internal(
         if ((flags & MKDIR_FOLLOW_SYMLINK) && S_ISLNK(st.st_mode)) {
                 _cleanup_free_ char *p = NULL;
 
-                r = chase_symlinks_and_stat(path, NULL, CHASE_NONEXISTENT, &p, &st, NULL);
+                r = chase_symlinks_and_stat(path, NULL, 0, &p, &st, NULL);
                 if (r < 0)
                         return r;
                 if (r == 0)