mirror of
https://github.com/systemd/systemd.git
synced 2025-09-21 09:44:45 +03:00
bootctl: properly handle readdir() errors
This commit is contained in:
@@ -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"))
|
||||
|
Reference in New Issue
Block a user