[sudo-commits] sudo changeset 7541:99c71b6f629a

Todd C. Miller Todd.Miller at courtesan.com
Wed Jan 4 13:07:22 EST 2012


changeset:	7541:99c71b6f629a in /home/hg/sudo
details:	http://www.sudo.ws/repos/sudo/rev/99c71b6f629a
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Wed Jan 04 13:01:41 2012 -0500

Log Message:
	When running a login shell with a login_class specified, use
	LOGIN_SETENV instead of rolling our own login.conf setenv support
	since FreeBSD's login.conf has more than just setenv capabilities.
	This requires us to swap the plugin-provided envp for the global
	environ before calling setusercontext() and then stash the resulting
	environ pointer back into the command details, which is kind of a
	hack.

diffstat:

 MANIFEST                      |    1 -
 configure                     |    1 -
 configure.in                  |    1 -
 mkdep.pl                      |    2 +-
 plugins/sudoers/Makefile.in   |    9 -
 plugins/sudoers/env.c         |    3 +-
 plugins/sudoers/login_class.c |  227 ------------------------------------------
 plugins/sudoers/sudoers.c     |   13 +--
 plugins/sudoers/sudoers.h     |    5 -
 src/sudo.c                    |   25 ++++-
 10 files changed, 27 insertions(+), 260 deletions(-)



More information about the sudo-commits mailing list