Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian Development (http://www.linux-archive.org/debian-development/)
-   -   Bug#688932: g_get_home_dir () should prefer ${HOME} over getpwuid ()->pw_dir (http://www.linux-archive.org/debian-development/707728-bug-688932-g_get_home_dir-should-prefer-home-over-getpwuid-pw_dir.html)

Ivan Shmakov 09-27-2012 05:59 AM

Bug#688932: g_get_home_dir () should prefer ${HOME} over getpwuid ()->pw_dir
 
Package: libglib2.0-0
Version: 2.32.3-1
X-Debbugs-Cc: debian-devel@lists.debian.org

[Filing bug, as was suggested in the debian-devel@ discussion
[1]. I've also started a discussion in gtk-devel-list@ [2].]

Currently, it's not possible for the user to specify an
arbitrary home directory for most of the Glib-based packages
(such as, e. g., Gimp [3].)

I therefore suggest to change g_get_home_dir () to follow the
usual Unix convention of using ${HOME} as the user's home
directory, falling back to getpwuid ()->pw_dir should HOME be
non-existent or empty, or, additionally, should it point to a
directory not owned by the current user, or on which he or she
has no executable permission, unless the current user is ‘root’
(UID 0.)

An expanded rationale is at [4].

TIA.

[1] http://comments.gmane.org/gmane.linux.debian.devel.general/176973
[2] http://comments.gmane.org/gmane.comp.gnome.gtk+.devel.general/22721
[3] http://bugs.debian.org/453711
[4] http://permalink.gmane.org/gmane.comp.gnome.gtk+.devel.general/22721

--
FSF associate member #7257


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 868vbwuhuj.fsf_-_@gray.siamics.net">http://lists.debian.org/868vbwuhuj.fsf_-_@gray.siamics.net


All times are GMT. The time now is 02:51 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.