GNU bug report logs - #19477
24.4; Init script from su terminal

Previous Next

Package: emacs;

Reported by: ibeas <at> gmx.com (Álvar Ibeas)

Date: Wed, 31 Dec 2014 16:38:02 UTC

Severity: minor

Merged with 36583, 36604

Found in version 26.1

Full log


Message #16 received at 19477 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 19477 <at> debbugs.gnu.org
Cc: ibeas <at> gmx.com
Subject: Re: bug#19477: 24.4; Init script from su terminal
Date: Fri, 02 Jan 2015 14:01:44 -0500
I'm not sure this should be closed.
Perhaps there is a better way for Emacs to do what it wants
(get the name under which you logged in) than consulting LOGNAME.
Eg it could do what `logname' the program does.
Although reading the info page for that, what it does (check
/var/run/utmp etc) doesn't seem that great, or portable.

I'm not sure that what Debian's su does is "correct", but I could not
find a standard for su. In any case, this seems like one of those things
that is impossible to ever get changed, because people come to rely on
it behaving the way it does.

In any case, I think the Emacs documentation could stand to be tweaked a
bit. Eg util-linux/coreutils su only leaves LOGNAME alone if you change
to root, not if you change to a non-root user.




This bug report was last modified 126 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.