pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gui: Create user settings directory if it doesn't already exist


From: Ben Pfaff
Subject: Re: gui: Create user settings directory if it doesn't already exist
Date: Tue, 08 Jun 2010 09:36:54 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

John Darrington <address@hidden> writes:

> + /* Get the name of the directory for user configuration files, then, if it
> + doesn't already exist, create it, since we might be the first program
> + to want to put files there. */
> + dirname = g_get_user_config_dir ();
> + if (stat (dirname, &s) == -1 && errno == ENOENT)
> + mkdir (dirname, 0777);
>
> According to the recommendations at 
> http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
> We should create the directory with mode 0700.

Thanks for pointing that out.  I pushed a fix.
-- 
"MONO - Monochrome Emulation
 This field is used to store your favorite bit."
--FreeVGA Attribute Controller Reference



reply via email to

[Prev in Thread] Current Thread [Next in Thread]