[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#328479: xbase-clients: X11 unsets LD_LIBRARY_PATH



On Thu, Sep 15, 2005 at 05:50:10PM +0200, Andreas Pakulat wrote:
> Package: xbase-clients
> Version: 6.8.2.dfsg.1-6
> Severity: normal
...
> The problem I have is, that startx /usr/bin/xterm "removes"
> LD_LIBRARY_PATH from my environment. When logging in using tty1, I see
> LD_LIBRARY_PATH=/usr/lib, but after I started X11 with that xterm it's
> gone. The same thing happens when logging into kdm.

Actually it's the setuid feature which is noticed by the C runtime, and
that removes the $LD_LIBRARY_PATH.  xterm is setuid in Debian to allow
it to update utmp (the record of logins).  It could be configured to use
the utempter library (Redhat does that).

For the same reason, (or perhaps they're using old-style pty's) several
other programs (I see Eterm, aterm, rxvt) are setuid.  gnome-terminal
and konsole aren't (but they're end-user applications designed to be run
in sessions - though google hints that they might want to write to utmp
- I see many bug reports ;-)

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

Attachment: pgpCUp_vKERY_.pgp
Description: PGP signature


Reply to: