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
@@ -801,7 +801,7 @@ static int context_ensure_layout(Context *c) {
if (!entry_token_path)
return log_oom();
r = is_dir_full(c->rfd, entry_token_path, /* follow = */ false);
r = is_dir_at(c->rfd, entry_token_path, /* follow = */ false);
if (r < 0 && r != -ENOENT)
return log_error_errno(r, "Failed to check if '%s' is a directory: %m", entry_token_path);
if (r > 0) {