Deleted Added
full compact
su.c (169125) su.c (169177)
1/*
2 * Copyright (c) 2002, 2005 Networks Associates Technologies, Inc.
3 * All rights reserved.
4 *
5 * Portions of this software were developed for the FreeBSD Project by
6 * ThinkSec AS and NAI Labs, the Security Research Division of Network
7 * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035
8 * ("CBOSS"), as part of the DARPA CHATS research program.

--- 60 unchanged lines hidden (view full) ---

69
70#if 0
71#ifndef lint
72static char sccsid[] = "@(#)su.c 8.3 (Berkeley) 4/2/94";
73#endif /* not lint */
74#endif
75
76#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2002, 2005 Networks Associates Technologies, Inc.
3 * All rights reserved.
4 *
5 * Portions of this software were developed for the FreeBSD Project by
6 * ThinkSec AS and NAI Labs, the Security Research Division of Network
7 * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035
8 * ("CBOSS"), as part of the DARPA CHATS research program.

--- 60 unchanged lines hidden (view full) ---

69
70#if 0
71#ifndef lint
72static char sccsid[] = "@(#)su.c 8.3 (Berkeley) 4/2/94";
73#endif /* not lint */
74#endif
75
76#include <sys/cdefs.h>
77__FBSDID("$FreeBSD: head/usr.bin/su/su.c 169125 2007-04-30 12:51:02Z ache $");
77__FBSDID("$FreeBSD: head/usr.bin/su/su.c 169177 2007-05-01 16:02:44Z ache $");
78
79#include <sys/param.h>
80#include <sys/time.h>
81#include <sys/resource.h>
82#include <sys/wait.h>
83
84#ifdef USE_BSM_AUDIT
85#include <bsm/libbsm.h>

--- 476 unchanged lines hidden (view full) ---

562
563static void
564export_pam_environment(void)
565{
566 char **pp;
567
568 for (pp = environ_pam; *pp != NULL; pp++) {
569 if (ok_to_export(*pp))
78
79#include <sys/param.h>
80#include <sys/time.h>
81#include <sys/resource.h>
82#include <sys/wait.h>
83
84#ifdef USE_BSM_AUDIT
85#include <bsm/libbsm.h>

--- 476 unchanged lines hidden (view full) ---

562
563static void
564export_pam_environment(void)
565{
566 char **pp;
567
568 for (pp = environ_pam; *pp != NULL; pp++) {
569 if (ok_to_export(*pp))
570 (void)putenv(*pp);
571 else
572 free(*pp);
570 putenv(*pp);
571 free(*pp);
573 }
574}
575
576/*
577 * Sanity checks on PAM environmental variables:
578 * - Make sure there is an '=' in the string.
579 * - Make sure the string doesn't run on too long.
580 * - Do not export certain variables. This list was taken from the

--- 61 unchanged lines hidden ---
572 }
573}
574
575/*
576 * Sanity checks on PAM environmental variables:
577 * - Make sure there is an '=' in the string.
578 * - Make sure the string doesn't run on too long.
579 * - Do not export certain variables. This list was taken from the

--- 61 unchanged lines hidden ---