Skip to content

Commit

Permalink
mkdir: CHASE_NONEXISTENT cannot used in chase_symlinks_and_stat()
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwata committed Feb 2, 2022
1 parent e4de58c commit e22916e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/basic/mkdir.c
Expand Up @@ -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)
Expand Down

0 comments on commit e22916e

Please sign in to comment.