diff options
author | Havoc Pennington <hp@redhat.com> | 2001-02-05 21:17:52 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-02-05 21:17:52 +0000 |
commit | 6ecb074cd27c0face4acaa6008a4e0137cb18587 (patch) | |
tree | b880b2dfa8355c12e74749b41496bb29918e9781 /gconf/gconfd.c | |
parent | 8783c5529ebf1d5a4aa6816e3422b03d53e3f8a5 (diff) | |
download | gconf-6ecb074cd27c0face4acaa6008a4e0137cb18587.tar.gz |
File permissions fixes, problem pointed out by Steve Fox.
2001-02-05 Havoc Pennington <hp@redhat.com>
File permissions fixes, problem pointed out by Steve Fox.
* backends/xml-dir.c (dir_sync): chmod() the XML file after
xmlSaveFile creates it
* gconf/gconfd.c (main): following Stevens advice for daemons, we
were calling umask(0), change to umask(022). We need a predictable
umask, but a safer one would be good since this is a per-user
daemon not a system daemon.
* backends/dir-utils.c (mode_t_to_mode): make this more portable,
for paranoia
* backends/xml-dir.c (dir_load): We were getting directory
permissions from the %gconf.xml file, instead of from the XML root
directory. Fix.
Diffstat (limited to 'gconf/gconfd.c')
-rw-r--r-- | gconf/gconfd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gconf/gconfd.c b/gconf/gconfd.c index 513e8f75..474c31fe 100644 --- a/gconf/gconfd.c +++ b/gconf/gconfd.c @@ -434,7 +434,7 @@ main(int argc, char** argv) chdir ("/"); - umask(0); + umask (022); gconf_set_daemon_mode(TRUE); |