Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/usr.bin/su Pull up revision 1.39 (requested by abs):
details: https://anonhg.NetBSD.org/src/rev/d59a89a8a35c
branches: netbsd-1-4
changeset: 470374:d59a89a8a35c
user: he <he%NetBSD.org@localhost>
date: Fri Feb 18 19:31:24 2000 +0000
description:
Pull up revision 1.39 (requested by abs):
Have su set SU_FROM environment variable, and use to avoid
incorrect 'use su' warning in root's .login.
diffstat:
usr.bin/su/su.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r e41fc01a107c -r d59a89a8a35c usr.bin/su/su.c
--- a/usr.bin/su/su.c Fri Feb 18 19:31:12 2000 +0000
+++ b/usr.bin/su/su.c Fri Feb 18 19:31:24 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: su.c,v 1.33.2.2 2000/01/08 18:34:50 he Exp $ */
+/* $NetBSD: su.c,v 1.33.2.3 2000/02/18 19:31:24 he Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@@ -44,7 +44,7 @@
#if 0
static char sccsid[] = "@(#)su.c 8.3 (Berkeley) 4/2/94";*/
#else
-__RCSID("$NetBSD: su.c,v 1.33.2.2 2000/01/08 18:34:50 he Exp $");
+__RCSID("$NetBSD: su.c,v 1.33.2.3 2000/02/18 19:31:24 he Exp $");
#endif
#endif /* not lint */
@@ -306,6 +306,7 @@
(void)setenv("HOME", pwd->pw_dir, 1);
(void)setenv("SHELL", shell, 1);
}
+ (void)setenv("SU_FROM", username, 1);
if (iscsh == YES) {
if (fastlogin)
Home |
Main Index |
Thread Index |
Old Index