homectl: fix error handling in shell_is_ok()

Fixes f233132a67.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2026-05-05 18:37:13 +02:00
parent fc05165fce
commit a92b60ae17
+1 -1
View File
@@ -2837,7 +2837,7 @@ static int shell_is_ok(const char *path, void *userdata) {
return false;
}
r = chase_and_access(path, /* root= */ NULL, CHASE_MUST_BE_REGULAR, X_OK, /* ret_path= */ NULL) >= 0;
r = chase_and_access(path, /* root= */ NULL, CHASE_MUST_BE_REGULAR, X_OK, /* ret_path= */ NULL);
if (r == -ENOENT) {
log_error_errno(r, "Shell '%s' does not exist, try again.", path);
return false;