diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2015-05-23 13:02:56 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2015-05-23 13:03:30 +0200 |
commit | dd114e116bf73a616c95a5b9e400199eb3bfa4c7 (patch) | |
tree | 5ea68216873e33a09ac5b767e48b460036d5494f /src/boot | |
parent | 7c918141edad0063a82411e0f9637e72a8aba223 (diff) |
bootctl: fix an error check
Diffstat (limited to 'src/boot')
-rw-r--r-- | src/boot/bootctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index ba534b172e..1e65597acf 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -805,7 +805,7 @@ static int remove_boot_efi(const char *esp_path) { continue; fd = openat(dirfd(d), de->d_name, O_RDONLY|O_CLOEXEC); - if (r < 0) + if (fd < 0) return log_error_errno(errno, "Failed to open \"%s/%s\" for reading: %m", p, de->d_name); r = get_file_version(fd, &v); |