diff options
Diffstat (limited to 'meta/recipes-core/glib-2.0/glib-2.0/0001-glocalfileoutputstream-Fix-a-typo-in-a-comment.patch')
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0/0001-glocalfileoutputstream-Fix-a-typo-in-a-comment.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0/0001-glocalfileoutputstream-Fix-a-typo-in-a-comment.patch b/meta/recipes-core/glib-2.0/glib-2.0/0001-glocalfileoutputstream-Fix-a-typo-in-a-comment.patch new file mode 100644 index 0000000000..e3def1a980 --- /dev/null +++ b/meta/recipes-core/glib-2.0/glib-2.0/0001-glocalfileoutputstream-Fix-a-typo-in-a-comment.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 48dd0d030a2b5240457472d40d8691b80bf5fa78 Mon Sep 17 00:00:00 2001 | ||
2 | From: Philip Withnall <pwithnall@endlessos.org> | ||
3 | Date: Wed, 24 Feb 2021 17:33:38 +0000 | ||
4 | Subject: [PATCH 1/5] glocalfileoutputstream: Fix a typo in a comment | ||
5 | |||
6 | Signed-off-by: Philip Withnall <pwithnall@endlessos.org> | ||
7 | |||
8 | CVE: CVE-2021-28153 | ||
9 | |||
10 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/glib/-/issues/2325] | ||
11 | |||
12 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
13 | --- | ||
14 | gio/glocalfileoutputstream.c | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/gio/glocalfileoutputstream.c b/gio/glocalfileoutputstream.c | ||
18 | index f34c3e4..e3d31d6 100644 | ||
19 | --- a/gio/glocalfileoutputstream.c | ||
20 | +++ b/gio/glocalfileoutputstream.c | ||
21 | @@ -854,7 +854,7 @@ handle_overwrite_open (const char *filename, | ||
22 | mode = mode_from_flags_or_info (flags, reference_info); | ||
23 | |||
24 | /* We only need read access to the original file if we are creating a backup. | ||
25 | - * We also add O_CREATE to avoid a race if the file was just removed */ | ||
26 | + * We also add O_CREAT to avoid a race if the file was just removed */ | ||
27 | if (create_backup || readable) | ||
28 | open_flags = O_RDWR | O_CREAT | O_BINARY; | ||
29 | else | ||
30 | -- | ||
31 | 2.17.1 | ||
32 | |||