Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
glib2.0
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
glib2.0
Merge requests
!3
Update from debian/buster for apertis/v2020dev0
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Update from debian/buster for apertis/v2020dev0
proposed-updates/debian/buster/f2a14236
into
apertis/v2020dev0
Overview
0
Commits
2
Pipelines
7
Changes
4
Closed
Þe Olde Robot
requested to merge
proposed-updates/debian/buster/f2a14236
into
apertis/v2020dev0
5 years ago
Overview
0
Commits
2
Pipelines
7
Changes
4
Expand
0
0
Merge request reports
Compare
apertis/v2020dev0
version 6
20eac8c3
5 years ago
version 5
8871e710
5 years ago
version 4
d13a10b3
5 years ago
version 3
dd3843fd
5 years ago
version 2
c0fec242
5 years ago
version 1
926d8013
5 years ago
apertis/v2020dev0 (base)
and
latest version
latest version
986c2953
2 commits,
5 years ago
version 6
20eac8c3
2 commits,
5 years ago
version 5
8871e710
2 commits,
5 years ago
version 4
d13a10b3
2 commits,
5 years ago
version 3
dd3843fd
2 commits,
5 years ago
version 2
c0fec242
3 commits,
5 years ago
version 1
926d8013
2 commits,
5 years ago
4 files
+
55
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
debian/patches/keyfile-settings-Use-tighter-permissions.patch
0 → 100644
+
36
−
0
Options
From: Matthias Clasen <mclasen@redhat.com>
Date: Tue, 22 Jan 2019 13:26:31 -0500
Subject: keyfile settings: Use tighter permissions
When creating directories, create them with 700 permissions,
instead of 777.
Closes: #1658
Origin: backport, 2.60.0, commit:5e4da714f00f6bfb2ccd6d73d61329c6f3a08429
---
gio/gkeyfilesettingsbackend.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gio/gkeyfilesettingsbackend.c b/gio/gkeyfilesettingsbackend.c
index a37978e..580a0b0 100644
--- a/gio/gkeyfilesettingsbackend.c
+++ b/gio/gkeyfilesettingsbackend.c
@@ -89,7 +89,8 @@
g_keyfile_settings_backend_keyfile_write (GKeyfileSettingsBackend *kfsb)
contents = g_key_file_to_data (kfsb->keyfile, &length, NULL);
g_file_replace_contents (kfsb->file, contents, length, NULL, FALSE,
- G_FILE_CREATE_REPLACE_DESTINATION,
+ G_FILE_CREATE_REPLACE_DESTINATION |
+ G_FILE_CREATE_PRIVATE,
NULL, NULL, NULL);
compute_checksum (kfsb->digest, contents, length);
@@ -640,7 +641,7 @@
g_keyfile_settings_backend_new (const gchar *filename,
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_peek_path (kfsb->dir), 0700);
kfsb->file_monitor = g_file_monitor (kfsb->file, 0, NULL, NULL);
kfsb->dir_monitor = g_file_monitor (kfsb->dir, 0, NULL, NULL);
Loading