stat-util: generalize is_* and verify_* handling

This commit is contained in:
Mike Yuan
2024-03-04 19:53:51 +00:00
committed by Luca Boccassi
parent 2492c89af0
commit 2560dcbfe6
6 changed files with 133 additions and 134 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ int mkdirat_parents_internal(int dir_fd, const char *path, mode_t mode, uid_t ui
/* drop the last component */
path = strndupa_safe(path, e - path);
r = is_dir_full(dir_fd, path, true);
r = is_dir_at(dir_fd, path, /* follow = */ true);
if (r > 0)
return 0;
if (r == 0)