bootctl: fix an error check

This commit is contained in:
Thomas Hindoe Paaboel Andersen
2015-05-23 13:03:30 +02:00
parent 7c918141ed
commit dd114e116b
+1 -1
View File
@@ -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);