[systemd-commits] src/boot

Thomas H.P. Andersen phomes at kemper.freedesktop.org
Sat May 23 04:03:46 PDT 2015


 src/boot/bootctl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit dd114e116bf73a616c95a5b9e400199eb3bfa4c7
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date:   Sat May 23 13:02:56 2015 +0200

    bootctl: fix an error check

diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c
index ba534b1..1e65597 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);



More information about the systemd-commits mailing list