From: Ben Pfaff Date: Tue, 8 Jun 2010 16:36:08 +0000 (-0700) Subject: gui: Fix permissions when creating configuration directory. X-Git-Tag: v0.7.6~374 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b350a68a008217d92eb4cbcd571e322118d4e27a;p=pspp-builds.git 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. --- 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");