Source-Changes-HG archive

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

[src/netbsd-3]: src/usr.bin/su Pull up revision 1.44 via patch (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/356af3d810a7
branches:  netbsd-3
changeset: 576536:356af3d810a7
user:      tron <tron%NetBSD.org@localhost>
date:      Sat Jul 09 23:03:17 2005 +0000

description:
Pull up revision 1.44 via patch (requested by kleink in ticket #551):
Set LOGNAME in the new environment (in addition to USER);
fixes PR bin/30670 from Pavel Cahyna.

diffstat:

 usr.bin/su/su.1 |  18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diffs (65 lines):

diff -r 331df2717272 -r 356af3d810a7 usr.bin/su/su.1
--- a/usr.bin/su/su.1   Sat Jul 09 23:03:11 2005 +0000
+++ b/usr.bin/su/su.1   Sat Jul 09 23:03:17 2005 +0000
@@ -26,7 +26,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"    from: @(#)su.1  8.2 (Berkeley) 4/18/94
-.\"    $NetBSD: su.1,v 1.40 2005/02/28 02:30:54 christos Exp $
+.\"    $NetBSD: su.1,v 1.40.2.1 2005/07/09 23:03:17 tron Exp $
 .\"
 .Dd August 20, 2003
 .Dt SU 1
@@ -66,6 +66,7 @@
 S/Key is a Trademark of Bellcore.
 .Pp
 By default, the environment is unmodified with the exception of
+.Ev LOGNAME ,
 .Ev USER ,
 .Ev HOME ,
 .Ev SHELL ,
@@ -75,9 +76,11 @@
 and
 .Ev SHELL
 are set to the target login's default values.
+.Ev LOGNAME
+and
 .Ev USER
-is set to the target login, unless the target login has a user ID of 0,
-in which case it is unmodified.
+are set to the target login, unless the target login has a user ID of 0,
+in which case they are unmodified.
 .Ev SU_FROM
 is set to the caller's login.
 The invoked shell is the target login's.
@@ -121,6 +124,7 @@
 .Ev SHELL ,
 .Ev PATH ,
 .Ev TERM ,
+.Ev LOGNAME ,
 .Ev USER ,
 and
 .Ev SU_FROM .
@@ -129,8 +133,10 @@
 and
 .Ev SU_FROM
 are modified as above.
+.Ev LOGNAME
+and
 .Ev USER
-is set to the target login.
+are set to the target login.
 .Ev PATH
 is set to the path specified in the
 .Pa /etc/login.conf
@@ -237,6 +243,10 @@
 .It Ev HOME
 Default home directory of real user ID unless modified as
 specified above.
+.It Ev LOGNAME
+The user ID is always the effective ID (the target user ID) after an
+.Nm
+unless the user ID is 0 (root).
 .It Ev PATH
 Default search path of real user ID unless modified as specified above.
 .It Ev TERM



Home | Main Index | Thread Index | Old Index