Blame SOURCES/0049-mkdir-CHASE_NONEXISTENT-cannot-used-in-chase_symlink.patch
|
|
8d419f |
From 848b8dde6fe096b317abf0b4996f21c8fe6a39ce Mon Sep 17 00:00:00 2001
|
|
|
8d419f |
From: Yu Watanabe <watanabe.yu+github@gmail.com>
|
|
|
8d419f |
Date: Wed, 2 Feb 2022 15:06:27 +0900
|
|
|
8d419f |
Subject: [PATCH] mkdir: CHASE_NONEXISTENT cannot used in
|
|
|
8d419f |
chase_symlinks_and_stat()
|
|
|
8d419f |
|
|
|
8d419f |
(cherry picked from commit e22916e61d1fdb7b46918b605ebf783d9017f9d8)
|
|
|
8d419f |
|
|
|
8d419f |
Related: #2017035
|
|
|
8d419f |
---
|
|
|
8d419f |
src/basic/mkdir.c | 2 +-
|
|
|
8d419f |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
8d419f |
|
|
|
8d419f |
diff --git a/src/basic/mkdir.c b/src/basic/mkdir.c
|
|
|
8d419f |
index 88782ab0d4..51a0d74e87 100644
|
|
|
8d419f |
--- a/src/basic/mkdir.c
|
|
|
8d419f |
+++ b/src/basic/mkdir.c
|
|
|
8d419f |
@@ -42,7 +42,7 @@ int mkdir_safe_internal(
|
|
|
8d419f |
if ((flags & MKDIR_FOLLOW_SYMLINK) && S_ISLNK(st.st_mode)) {
|
|
|
8d419f |
_cleanup_free_ char *p = NULL;
|
|
|
8d419f |
|
|
|
8d419f |
- r = chase_symlinks_and_stat(path, NULL, CHASE_NONEXISTENT, &p, &st, NULL);
|
|
|
8d419f |
+ r = chase_symlinks_and_stat(path, NULL, 0, &p, &st, NULL);
|
|
|
8d419f |
if (r < 0)
|
|
|
8d419f |
return r;
|
|
|
8d419f |
if (r == 0)
|