29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
From 78420a75aeb70569a8cd79fa0fea7b786b6f785f Mon Sep 17 00:00:00 2001
|
|
From: Philip Withnall <pwithnall@endlessos.org>
|
|
Date: Wed, 24 Feb 2021 17:33:38 +0000
|
|
Subject: [PATCH 1/5] glocalfileoutputstream: Fix a typo in a comment
|
|
|
|
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
|
|
|
|
Conflict:NA
|
|
Reference:https://gitlab.gnome.org/GNOME/glib/-/commit/01c5468e10707cbf78e6e83bbcf1ce9c866f2885
|
|
---
|
|
gio/glocalfileoutputstream.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/gio/glocalfileoutputstream.c b/gio/glocalfileoutputstream.c
|
|
index f34c3e439..e3d31d6b3 100644
|
|
--- a/gio/glocalfileoutputstream.c
|
|
+++ b/gio/glocalfileoutputstream.c
|
|
@@ -854,7 +854,7 @@ handle_overwrite_open (const char *filename,
|
|
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 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)
|
|
open_flags = O_RDWR | O_CREAT | O_BINARY;
|
|
else
|
|
--
|
|
GitLab
|