diff options
author | Vincent Untz <vuntz@gnome.org> | 2011-05-02 16:31:28 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2011-05-03 10:02:45 +0200 |
commit | 356fa8e2b58c22fba5fc628e09d3a78771ebd7ce (patch) | |
tree | a937aee1fe9c8186bc485fc16751deb50f0c9464 | |
parent | 6c36b5ce99b432c27c56f56b33bffa0a8d66437e (diff) |
Create XDG_CONFIG_HOME with 0700 permissions
The spec clearly says "If, when attempting to write a file, the
destination directory is non-existant an attempt should be made to
create it with permission 0700."
https://bugs.freedesktop.org/show_bug.cgi?id=36773
-rw-r--r-- | xdg-user-dirs-update.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xdg-user-dirs-update.c b/xdg-user-dirs-update.c index 9e00e5b..d468a8c 100644 --- a/xdg-user-dirs-update.c +++ b/xdg-user-dirs-update.c @@ -753,7 +753,7 @@ save_user_dirs (void) if (stat (dir, &stat_buf) == -1 && errno == ENOENT) { - if (mkdir (dir, 0755) == -1) + if (mkdir (dir, 0700) == -1) { free (dir); fprintf (stderr, "Can't save user-dirs.dirs, failed to create directory\n"); |