Skip to content

Commit c683487

Browse files
authored
Directory cannot be a binary (librenms#19839)
1 parent 74745d2 commit c683487

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/ConfigRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ public function locateBinary($binary): mixed
539539
$list = trim(substr((string) $output, strpos((string) $output, ':') + 1));
540540
$targets = explode(' ', $list);
541541
foreach ($targets as $target) {
542-
if (is_executable($target)) {
542+
if (is_executable($target) && ! is_dir($target)) {
543543
return $target;
544544
}
545545
}

0 commit comments

Comments
 (0)