FAILURE xaccResolveFilePath test-resolve-file-path.c:81

Christian Stimming stimming at tuhh.de
Mon Sep 25 11:39:53 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Derek Atkins schrieb:
>>>   homedir = getenv("HOME")
>>>   if (!homedir)
>>>     homedir = g_get_home_dir();
>>
>> Unless that's common usage, I see no point in modifying GnuCash's
>> behavior to be inconsistent with other applications that use the
>> g_get_home_dir function.
> 
> As Christian said, the glib docs even say that this behavior is different
> than every other Unixy app behavior.  I have no idea why glib did it
> this way, but I think it's just wrong and I think we should revert
> to "standard" behavior.

I think the rationale behind /etc/passwd has to do with the potential
security implications of giving $HOME precedence. See
http://julipedia.blogspot.com/2005/02/how-to-get-users-home-directory.html

I am rather curious as to why xaccResolveFilePath() in this particular
case seems to use $HOME instead of the result of g_get_home_dir()... Is
this really SVN trunk? Or SVN branch-2.0 instead? Because the changes to
g_get_home_dir are only in trunk.

Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBRRf4SWXAi+BfhivFAQKZQwP+KpLb8dOJjs0JITV5duokdFYn4ePUu8TS
pgI/kufMvSmwfIOvP59kVg3RovSB3YPAi97+pd7EBnDF9v5vvRsu0eiclt3BlB7m
/Ym5QqCgG+z6SGJOmqPAmypQ2sIRqnAShW4vCr0Wi0t1Uz65PEE8vWNB1Xq+u26Z
MTFQ0P9svCI=
=4qQx
-----END PGP SIGNATURE-----


More information about the gnucash-devel mailing list