From b350a68a008217d92eb4cbcd571e322118d4e27a Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 8 Jun 2010 09:36:08 -0700 Subject: [PATCH] gui: Fix permissions when creating configuration directory. http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html says that the configuration directory should have mode 0700, so use that. Reported by John Darrington. --- src/ui/gui/psppire-conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/gui/psppire-conf.c b/src/ui/gui/psppire-conf.c index dbcdf0e0..02cc2751 100644 --- a/src/ui/gui/psppire-conf.c +++ b/src/ui/gui/psppire-conf.c @@ -150,7 +150,7 @@ psppire_conf_init (PsppireConf *conf) to want to put files there. */ dirname = g_get_user_config_dir (); if (stat (dirname, &s) == -1 && errno == ENOENT) - mkdir (dirname, 0777); + mkdir (dirname, 0700); conf->filename = g_strdup_printf ("%s/%s", dirname, "psppirerc"); -- 2.30.2