]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootctl: fix assert issue
authorLennart Poettering <lennart@poettering.net>
Thu, 9 Apr 2020 18:03:19 +0000 (20:03 +0200)
committerVito Caputo <vcaputo@pengaru.com>
Thu, 9 Apr 2020 18:22:40 +0000 (11:22 -0700)
Follow-up for b46c3e4913f7f234039ebd8104446450917cab8d

src/boot/bootctl.c

index 1a2ea0ae65dbf6f34a6b3f612b669288cb565aec..1fa6773db56f549d3b20492b507ef3fb27167125 100644 (file)
@@ -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)