Skip to content
Snippets Groups Projects
Commit a500ed0c authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Ignore errors removing old list file

If there's a problem, we'll catch it on the rename(), no need to
add a race condition by checking if it exists first.

Should fix issue 190
parent bea751bc
No related branches found
No related tags found
No related merge requests found
Pipeline #8174 passed
......@@ -2,6 +2,7 @@ Version 1.6b
------------
Fix regression in Atari auto-login
Disable Prestel ENQ/Memory in BBC Micro Mode 7
Fix error adding a new Web List
Version 1.5
------------
......
......@@ -1107,8 +1107,7 @@ do_request(struct http_session *sess)
fclose(newfile);
newfile = NULL;
if (remove(path)) {
set_msgf(sess->req, "remove(\"%s\") error", path);
goto error_return;
// Ignore error
}
if (rename(npath, path) != 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment