Bug#323848: libglib2.0-0: Documentation of g_get_home_dir erroneously says it returns the user's home dir.

Bernhard R. Link brl at pcpool00.mathematik.uni-freiburg.de
Thu Aug 18 20:24:27 UTC 2005


Package: libglib2.0-0
Version: 2.6.4-1
Severity: minor

The documentation for g_get_home_dir specifies:

| G_CONST_RETURN gchar* g_get_home_dir        (void);
| 
| Gets the current user's home directory.
| 
| Note that in contrast to traditional Unix tools, this function
| prefers passwd entries over the HOME environment variable.
| 	
| Returns : the current user's home directory.

Which is obvious self-contradicting, as the home directory is the
content of the HOME environment variable, and the passwd entry is
only one possible initial value (if it exists at all).

As the comment seems to indicate that it does not return the
home directory, it should rather read something like:

Gets the current user's possible initial home directory.

Note that the actual home directory for this program can be
get by reading the HOME environment variable, this is only a
value which was most likely used by the login program to
initial set it.

Returns : the current user's most likely initial home directory.

Hochachtungsvoll,
	Bernhard R. Link

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)

Versions of packages libglib2.0-0 depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an

-- no debconf information





More information about the Pkg-gnome-maintainers mailing list