Skip to content
Snippets Groups Projects
Commit 3d9098e0 authored by Mike Gabriel's avatar Mike Gabriel Committed by Simon McVittie
Browse files

Import Debian changes 2.42.1-1+deb8u3

glib2.0 (2.42.1-1+deb8u3) jessie-security; urgency=medium

  * CVE-2019-13012: Update CVE-2019-13012-1.patch. Fix memleak regression
    spotted by Simon McVittie. (Closes: #933877).
parent 9819a50b
No related merge requests found
glib2.0 (2.42.1-1+deb8u3) jessie-security; urgency=medium
* CVE-2019-13012: Update CVE-2019-13012-1.patch. Fix memleak regression
spotted by Simon McVittie. (Closes: #933877).
-- Mike Gabriel <sunweaver@debian.org> Mon, 05 Aug 2019 20:58:34 +0200
glib2.0 (2.42.1-1+deb8u2) jessie-security; urgency=medium
* Non-maintainer upload by the LTS team.
......
......@@ -11,12 +11,22 @@ Origin: https://gitlab.gnome.org/GNOME/glib/commit/5e4da714f00f6bfb2ccd6d73d6132
--- a/gio/gkeyfilesettingsbackend.c
+++ b/gio/gkeyfilesettingsbackend.c
@@ -640,7 +640,7 @@
@@ -627,6 +627,7 @@
const gchar *root_group)
{
GKeyfileSettingsBackend *kfsb;
+ char *dir;
g_return_val_if_fail (filename != NULL, NULL);
g_return_val_if_fail (root_path != NULL, NULL);
@@ -640,7 +641,9 @@
kfsb->file = g_file_new_for_path (filename);
kfsb->dir = g_file_get_parent (kfsb->file);
- g_file_make_directory_with_parents (kfsb->dir, NULL, NULL);
+ g_mkdir_with_parents (g_file_get_path (kfsb->dir), 0700);
+ dir = g_file_get_path (kfsb->dir);
+ g_mkdir_with_parents (dir, 0700);
+ g_free (dir);
kfsb->file_monitor = g_file_monitor (kfsb->file, 0, NULL, NULL);
kfsb->dir_monitor = g_file_monitor (kfsb->dir, 0, NULL, NULL);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment