login.c (169126) | login.c (169177) |
---|---|
1/*- 2 * Copyright (c) 1980, 1987, 1988, 1991, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 2002 Networks Associates Technologies, Inc. 5 * All rights reserved. 6 * 7 * Portions of this software were developed for the FreeBSD Project by 8 * ThinkSec AS and NAI Labs, the Security Research Division of Network --- 31 unchanged lines hidden (view full) --- 40 41#if 0 42#ifndef lint 43static char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94"; 44#endif 45#endif 46 47#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1980, 1987, 1988, 1991, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 2002 Networks Associates Technologies, Inc. 5 * All rights reserved. 6 * 7 * Portions of this software were developed for the FreeBSD Project by 8 * ThinkSec AS and NAI Labs, the Security Research Division of Network --- 31 unchanged lines hidden (view full) --- 40 41#if 0 42#ifndef lint 43static char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94"; 44#endif 45#endif 46 47#include <sys/cdefs.h> |
48__FBSDID("$FreeBSD: head/usr.bin/login/login.c 169126 2007-04-30 12:54:02Z ache $"); | 48__FBSDID("$FreeBSD: head/usr.bin/login/login.c 169177 2007-05-01 16:02:44Z ache $"); |
49 50/* 51 * login [ name ] 52 * login -h hostname (for telnetd, etc.) 53 * login -f name (for pre-authenticated login: datakit, xterm, etc.) 54 */ 55 56#include <sys/copyright.h> --- 683 unchanged lines hidden (view full) --- 740export_pam_environment() 741{ 742 char **pam_env; 743 char **pp; 744 745 pam_env = pam_getenvlist(pamh); 746 if (pam_env != NULL) { 747 for (pp = pam_env; *pp != NULL; pp++) { | 49 50/* 51 * login [ name ] 52 * login -h hostname (for telnetd, etc.) 53 * login -f name (for pre-authenticated login: datakit, xterm, etc.) 54 */ 55 56#include <sys/copyright.h> --- 683 unchanged lines hidden (view full) --- 740export_pam_environment() 741{ 742 char **pam_env; 743 char **pp; 744 745 pam_env = pam_getenvlist(pamh); 746 if (pam_env != NULL) { 747 for (pp = pam_env; *pp != NULL; pp++) { |
748 if (!export(*pp)) 749 free(*pp); | 748 (void)export(*pp); 749 free(*pp); |
750 } 751 } 752} 753 754/* 755 * Perform sanity checks on an environment variable: 756 * - Make sure there is an '=' in the string. 757 * - Make sure the string doesn't run on too long. --- 219 unchanged lines hidden --- | 750 } 751 } 752} 753 754/* 755 * Perform sanity checks on an environment variable: 756 * - Make sure there is an '=' in the string. 757 * - Make sure the string doesn't run on too long. --- 219 unchanged lines hidden --- |