mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-06 13:17:44 +03:00
bootctl: properly handle readdir() errors
This commit is contained in:
parent
882b3bd6c5
commit
0d73a81611
@ -583,7 +583,7 @@ static int install_binaries(const char *esp_path, bool force) {
|
||||
if (!d)
|
||||
return log_error_errno(errno, "Failed to open \""BOOTLIBDIR"\": %m");
|
||||
|
||||
FOREACH_DIRENT(de, d, break) {
|
||||
FOREACH_DIRENT(de, d, return log_error_errno(errno, "Failed to read \""BOOTLIBDIR"\": %m")) {
|
||||
int k;
|
||||
|
||||
if (!endswith_no_case(de->d_name, ".efi"))
|
||||
|
Loading…
Reference in New Issue
Block a user