mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
Merge branch 'local-output-stream-prevent-double-fd-close' into 'main'
glocalfileoutputstream: Do not double-close an fd on unlink error See merge request GNOME/glib!2901
This commit is contained in:
commit
7b53edbf26
@ -1194,6 +1194,7 @@ handle_overwrite_open (const char *filename,
|
||||
if (replace_destination_set)
|
||||
{
|
||||
g_close (fd, NULL);
|
||||
fd = -1;
|
||||
|
||||
if (g_unlink (filename) != 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user