* NEWS, src/su.c: Preserve COLORTERM in addition to TERM when su
is called with the -l option.
This commit is contained in:
parent
2bb7007fcb
commit
d8c9236a18
@ -1,3 +1,8 @@
|
|||||||
|
2009-01-06 Sebastian Rick Rijkers <srrijkers@gmail.com>
|
||||||
|
|
||||||
|
* NEWS, src/su.c: Preserve COLORTERM in addition to TERM when su
|
||||||
|
is called with the -l option.
|
||||||
|
|
||||||
2008-12-23 Nicolas François <nicolas.francois@centraliens.net>
|
2008-12-23 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* libmisc/chkname.c: Use a bool when possible instead of integers.
|
* libmisc/chkname.c: Use a bool when possible instead of integers.
|
||||||
|
2
NEWS
2
NEWS
@ -69,6 +69,8 @@ shadow-4.1.2.2 -> shadow-4.1.3 UNRELEASED
|
|||||||
* For compatibility with other passwd version, the --lock an --unlock
|
* For compatibility with other passwd version, the --lock an --unlock
|
||||||
options do not lock or unlock the user account anymore. They only
|
options do not lock or unlock the user account anymore. They only
|
||||||
lock or unlock the user's password.
|
lock or unlock the user's password.
|
||||||
|
- su
|
||||||
|
*
|
||||||
- useradd
|
- useradd
|
||||||
* audit logging improvements.
|
* audit logging improvements.
|
||||||
* Speedup (see "addition of users or groups" above).
|
* Speedup (see "addition of users or groups" above).
|
||||||
|
14
README
14
README
@ -1,14 +1,19 @@
|
|||||||
Shadow SITES
|
Shadow SITES
|
||||||
============
|
============
|
||||||
|
|
||||||
|
Homepage
|
||||||
|
http://pkg-shadow.alioth.debian.org/
|
||||||
|
|
||||||
FTP site
|
FTP site
|
||||||
ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow
|
ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow
|
||||||
|
|
||||||
SVN repository
|
SVN repository
|
||||||
anonymous read only access: svn://svn.debian.org/pkg-shadow/
|
anonymous read only access: svn://svn.debian.org/pkg-shadow/upstream
|
||||||
|
|
||||||
SVN web interface
|
SVN web interface
|
||||||
http://svn.debian.org/wsvn/pkg-shadow
|
http://svn.debian.org/wsvn/pkg-shadow/upstream
|
||||||
|
or
|
||||||
|
http://svn.debian.org/viewsvn/pkg-shadow/upstream
|
||||||
|
|
||||||
Mailing lists
|
Mailing lists
|
||||||
for general discuss: pkg-shadow-devel@lists.alioth.debian.org
|
for general discuss: pkg-shadow-devel@lists.alioth.debian.org
|
||||||
@ -84,6 +89,7 @@ Martin Bene <mb@sime.com>
|
|||||||
Martin Mares <mj@gts.cz>
|
Martin Mares <mj@gts.cz>
|
||||||
Michael Meskes <meskes@topsystem.de>
|
Michael Meskes <meskes@topsystem.de>
|
||||||
Michael Talbot-Wilson <mike@calypso.bns.com.au>
|
Michael Talbot-Wilson <mike@calypso.bns.com.au>
|
||||||
|
Mike Frysinger <vapier@gentoo.org>
|
||||||
Mike Pakovic <mpakovic@users.southeast.net>
|
Mike Pakovic <mpakovic@users.southeast.net>
|
||||||
Nicolas François <nicolas.francois@centraliens.net>
|
Nicolas François <nicolas.francois@centraliens.net>
|
||||||
Nikos Mavroyanopoulos <nmav@i-net.paiko.gr>
|
Nikos Mavroyanopoulos <nmav@i-net.paiko.gr>
|
||||||
@ -92,6 +98,7 @@ Phillip Street
|
|||||||
Rafał Maszkowski <rzm@icm.edu.pl>
|
Rafał Maszkowski <rzm@icm.edu.pl>
|
||||||
Rani Chouha <ranibey@smartec.com>
|
Rani Chouha <ranibey@smartec.com>
|
||||||
Sami Kerola <kerolasa@rocketmail.com>
|
Sami Kerola <kerolasa@rocketmail.com>
|
||||||
|
Sebastian Rick Rijkers <srrijkers@gmail.com>
|
||||||
Seraphim Mellos <mellos@ceid.upatras.gr>
|
Seraphim Mellos <mellos@ceid.upatras.gr>
|
||||||
Shane Watts <shane@nexus.mlckew.edu.au>
|
Shane Watts <shane@nexus.mlckew.edu.au>
|
||||||
Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
|
Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
|
||||||
@ -104,5 +111,6 @@ Werner Fink <werner@suse.de>
|
|||||||
Maintainers
|
Maintainers
|
||||||
===========
|
===========
|
||||||
|
|
||||||
Tomasz Kłoczko <kloczek@pld.org.pl> (2000-2006)
|
Tomasz Kłoczko <kloczek@pld.org.pl> (2000-2007)
|
||||||
|
Nicolas François <nicolas.francois@centraliens.net> (2007-now)
|
||||||
|
|
||||||
|
9
TODO
9
TODO
@ -1,3 +1,8 @@
|
|||||||
|
groupadd.8.xml
|
||||||
|
* Groupnames may only be up to 16 characters long.
|
||||||
|
=> remove the note if no limits.
|
||||||
|
=> should depend on the --with-group-name-max-length option
|
||||||
|
|
||||||
libxcrypt support
|
libxcrypt support
|
||||||
* http://wiki.linuxfromscratch.org/patches/browser/trunk/shadow/shadow-4.0.18.1-owl_blowfish-1.patch
|
* http://wiki.linuxfromscratch.org/patches/browser/trunk/shadow/shadow-4.0.18.1-owl_blowfish-1.patch
|
||||||
|
|
||||||
@ -95,6 +100,10 @@ ALL:
|
|||||||
- Add check to move passwd passwords to shadow if there is a shadow
|
- Add check to move passwd passwords to shadow if there is a shadow
|
||||||
file.
|
file.
|
||||||
|
|
||||||
|
- su
|
||||||
|
- add a login.defs configuration parameter to add variables to keep in
|
||||||
|
the environment with "su -l" (TERM/TERMCOLOR/...
|
||||||
|
|
||||||
- vipw:
|
- vipw:
|
||||||
- Is MAX_MEMBERS_PER_GROUP used by vipw?
|
- Is MAX_MEMBERS_PER_GROUP used by vipw?
|
||||||
|
|
||||||
|
14
src/su.c
14
src/su.c
@ -561,6 +561,20 @@ int main (int argc, char **argv)
|
|||||||
if (NULL != cp) {
|
if (NULL != cp) {
|
||||||
addenv ("TERM", cp);
|
addenv ("TERM", cp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* For some terminals COLORTERM seems to be the only way
|
||||||
|
* for checking for that specific terminal. For instance,
|
||||||
|
* gnome-terminal sets its TERM as "xterm" but its
|
||||||
|
* COLORTERM as "gnome-terminal". The COLORTERM variable
|
||||||
|
* is also of use when running GNU screen since it sets
|
||||||
|
* TERM to "screen" but doesn't touch COLORTERM.
|
||||||
|
*/
|
||||||
|
cp = getenv ("COLORTERM");
|
||||||
|
if (NULL != cp) {
|
||||||
|
addenv ("COLORTERM", cp);
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef USE_PAM
|
#ifndef USE_PAM
|
||||||
cp = getdef_str ("ENV_TZ");
|
cp = getdef_str ("ENV_TZ");
|
||||||
if (NULL != cp) {
|
if (NULL != cp) {
|
||||||
|
Loading…
Reference in New Issue
Block a user