mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
glocalfileoutputstream: Fix a typo in a comment
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
(cherry picked from commit 78420a75ae
)
This commit is contained in:
committed by
Simon McVittie
parent
c1a66787cb
commit
84d7b850d7
@@ -755,7 +755,7 @@ handle_overwrite_open (const char *filename,
|
|||||||
mode = mode_from_flags_or_info (flags, reference_info);
|
mode = mode_from_flags_or_info (flags, reference_info);
|
||||||
|
|
||||||
/* We only need read access to the original file if we are creating a backup.
|
/* We only need read access to the original file if we are creating a backup.
|
||||||
* We also add O_CREATE to avoid a race if the file was just removed */
|
* We also add O_CREAT to avoid a race if the file was just removed */
|
||||||
if (create_backup || readable)
|
if (create_backup || readable)
|
||||||
open_flags = O_RDWR | O_CREAT | O_BINARY;
|
open_flags = O_RDWR | O_CREAT | O_BINARY;
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user