auth.c (162856) | auth.c (164149) |
---|---|
1/* $OpenBSD: auth.c,v 1.75 2006/08/03 03:34:41 deraadt Exp $ */ 2/* 3 * Copyright (c) 2000 Markus Friedl. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 */ 25 26#include "includes.h" | 1/* $OpenBSD: auth.c,v 1.75 2006/08/03 03:34:41 deraadt Exp $ */ 2/* 3 * Copyright (c) 2000 Markus Friedl. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 */ 25 26#include "includes.h" |
27__RCSID("$FreeBSD: head/crypto/openssh/auth.c 162856 2006-09-30 13:38:06Z des $"); | 27__RCSID("$FreeBSD: head/crypto/openssh/auth.c 164149 2006-11-10 16:52:41Z des $"); |
28 29#include <sys/types.h> 30#include <sys/stat.h> 31#include <sys/param.h> 32 33#include <netinet/in.h> 34 35#include <errno.h> --- 529 unchanged lines hidden (view full) --- 565{ 566 static struct passwd fake; 567 568 memset(&fake, 0, sizeof(fake)); 569 fake.pw_name = "NOUSER"; 570 fake.pw_passwd = 571 "$2a$06$r3.juUaHZDlIbQaO2dS9FuYxL1W9M81R1Tc92PoSNmzvpEqLkLGrK"; 572 fake.pw_gecos = "NOUSER"; | 28 29#include <sys/types.h> 30#include <sys/stat.h> 31#include <sys/param.h> 32 33#include <netinet/in.h> 34 35#include <errno.h> --- 529 unchanged lines hidden (view full) --- 565{ 566 static struct passwd fake; 567 568 memset(&fake, 0, sizeof(fake)); 569 fake.pw_name = "NOUSER"; 570 fake.pw_passwd = 571 "$2a$06$r3.juUaHZDlIbQaO2dS9FuYxL1W9M81R1Tc92PoSNmzvpEqLkLGrK"; 572 fake.pw_gecos = "NOUSER"; |
573 fake.pw_uid = (uid_t)-1; 574 fake.pw_gid = (gid_t)-1; | |
575 fake.pw_uid = privsep_pw->pw_uid; 576 fake.pw_gid = privsep_pw->pw_gid; 577#ifdef HAVE_PW_CLASS_IN_PASSWD 578 fake.pw_class = ""; 579#endif 580 fake.pw_dir = "/nonexist"; 581 fake.pw_shell = "/nonexist"; 582 583 return (&fake); 584} | 573 fake.pw_uid = privsep_pw->pw_uid; 574 fake.pw_gid = privsep_pw->pw_gid; 575#ifdef HAVE_PW_CLASS_IN_PASSWD 576 fake.pw_class = ""; 577#endif 578 fake.pw_dir = "/nonexist"; 579 fake.pw_shell = "/nonexist"; 580 581 return (&fake); 582} |