After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 91079 - Pan do not use $HOME for determining the users home directory
Pan do not use $HOME for determining the users home directory
Status: RESOLVED DUPLICATE of bug 2311
Product: glib
Classification: Platform
Component: general
2.0.x
Other Linux
: Normal normal
: ---
Assigned To: Charles Kerr
Pan QA Team
Depends on:
Blocks:
 
 
Reported: 2002-08-18 07:08 UTC by Klaus
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Klaus 2002-08-18 07:08:17 UTC
When I set the environment $HOME (with pam or by hand) pan do not use it.
Pan only looks to the /etc/passwd and use the homedirectory which is there.

I still report the bug to the debian maintainer and he reported it to you.
But I think there was a missunderstanding and he do not use pan by itself.

So, the bug has nothing to do with .Xauthority. The X system works well and
all other (X or not X) applications works well. It is only Pan which do not
use $HOME.
Comment 1 Christophe Lambin 2002-08-18 08:02:57 UTC
What behaviour are you seeing when you override $HOME ? What are you
expecting ?
Comment 2 Christophe Lambin 2002-08-18 11:27:25 UTC
charles: we get the user's home directory through g_get_home_dir(),
which only looks at $HOME if getpwuid() fails. See glib2 bug #2311 for
more info.


klaus: why are you overriding HOME ? What are you trying to accomplish?
Comment 3 Charles Kerr 2002-09-17 04:30:28 UTC
klaus: this isn't a Pan bug -- as Chris says, Pan just uses
g_get_home_dir().  If you feel strongly about this, you should
refile this bug under "glib" rather than "pan" at
bugzilla.gnome.org.
Comment 4 Klaus 2002-09-17 08:11:51 UTC
I do not think this is a glib bug. NO application has to get its
homedirectory with getpwuid! Pan is the only application I know which
use getpwuid to get its home. Only systemapplications which do
somethink administrative should use this libc-funktion.

And a version bevore pan was doing everythink correct.

So I think it IS a bug!

Yours
   Klaus Ethgen
Comment 5 Charles Kerr 2002-09-17 16:04:33 UTC
(10:51:39)(~/tmp/pan): grep g_get_home_dir `find ./ -name "*\.[Cch]"`
| wc --lines
     10
(10:51:47)(~/tmp/pan): grep getpwuid `find ./ -name "*\.[Cch]"` | wc
--lines
      0

*** This bug has been marked as a duplicate of 2311 ***