mirror of
https://github.com/systemd/systemd.git
synced 2025-01-25 10:04:04 +03:00
bootctl: fix assert issue
Follow-up for b46c3e4913f7f234039ebd8104446450917cab8d
This commit is contained in:
parent
10eed9848d
commit
c46db6c0a2
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user