mirror of
https://github.com/systemd/systemd
synced 2024-09-06 00:41:36 +00:00
Merge pull request #13651 from cdown/find_binary_2
util-lib: Don't propagate EACCES from find_binary PATH lookup to caller
This commit is contained in:
commit
c4fed80522
|
@ -651,7 +651,9 @@ int find_binary(const char *name, char **ret) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
last_error = -errno;
|
||||
/* PATH entries which we don't have access to are ignored, as per tradition. */
|
||||
if (errno != EACCES)
|
||||
last_error = -errno;
|
||||
}
|
||||
|
||||
return last_error;
|
||||
|
|
Loading…
Reference in a new issue