FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

LinkBack Thread Tools
Old 09-27-2012, 05:59 AM
Ivan Shmakov
Default 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].


[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

Thread Tools

All times are GMT. The time now is 01:05 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org