From: Lennart Poettering Date: Thu, 9 Apr 2020 18:03:19 +0000 (+0200) Subject: bootctl: fix assert issue X-Git-Tag: v246-rc1~620 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c46db6c0a2c9d047f8136ea8ef2c28f002324462;p=thirdparty%2Fsystemd.git bootctl: fix assert issue Follow-up for b46c3e4913f7f234039ebd8104446450917cab8d --- diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index 1a2ea0ae65d..1fa6773db56 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -1006,7 +1006,7 @@ static int install_loader_config(const char *esp_path, sd_id128_t machine_id) { if (r < 0) return log_error_errno(r, "Failed to write \"%s\": %m", p); - r = link_tmpfile(fd, t, p); + r = link_tmpfile(fileno(f), t, p); if (r == -EEXIST) return 0; /* Silently skip creation if the file exists now (recheck) */ if (r < 0)