Deleted Added
full compact
loginrec.c (157019) loginrec.c (158519)
1/*
2 * Copyright (c) 2000 Andre Lucas. All rights reserved.
3 * Portions copyright (c) 1998 Todd C. Miller
4 * Portions copyright (c) 1996 Jason Downs
5 * Portions copyright (c) 1996 Theo de Raadt
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

161# include <util.h>
162#endif
163
164#ifdef HAVE_LIBUTIL_H
165# include <libutil.h>
166#endif
167
168RCSID("$Id: loginrec.c,v 1.71 2005/11/22 08:55:13 dtucker Exp $");
1/*
2 * Copyright (c) 2000 Andre Lucas. All rights reserved.
3 * Portions copyright (c) 1998 Todd C. Miller
4 * Portions copyright (c) 1996 Jason Downs
5 * Portions copyright (c) 1996 Theo de Raadt
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

161# include <util.h>
162#endif
163
164#ifdef HAVE_LIBUTIL_H
165# include <libutil.h>
166#endif
167
168RCSID("$Id: loginrec.c,v 1.71 2005/11/22 08:55:13 dtucker Exp $");
169RCSID("$FreeBSD: head/crypto/openssh/loginrec.c 157019 2006-03-22 20:41:37Z des $");
169RCSID("$FreeBSD: head/crypto/openssh/loginrec.c 158519 2006-05-13 13:47:45Z des $");
170
171/**
172 ** prototypes for helper functions in this file
173 **/
174
175#if HAVE_UTMP_H
176void set_utmp_time(struct logininfo *li, struct utmp *ut);
177void construct_utmp(struct logininfo *li, struct utmp *ut);

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

1383 **/
1384
1385#ifdef USE_LOGIN
1386static int
1387syslogin_perform_login(struct logininfo *li)
1388{
1389 struct utmp *ut;
1390
170
171/**
172 ** prototypes for helper functions in this file
173 **/
174
175#if HAVE_UTMP_H
176void set_utmp_time(struct logininfo *li, struct utmp *ut);
177void construct_utmp(struct logininfo *li, struct utmp *ut);

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

1383 **/
1384
1385#ifdef USE_LOGIN
1386static int
1387syslogin_perform_login(struct logininfo *li)
1388{
1389 struct utmp *ut;
1390
1391 debug("%s(%s)", __func__, li->username);
1391 ut = xmalloc(sizeof(*ut));
1392 construct_utmp(li, ut);
1392 ut = xmalloc(sizeof(*ut));
1393 construct_utmp(li, ut);
1394 debug("login({%s, %s, %s, %u})", ut->ut_line, ut->ut_name, ut->ut_host, ut->ut_time);
1393 login(ut);
1394 free(ut);
1395
1396 return (1);
1397}
1398
1399static int
1400syslogin_perform_logout(struct logininfo *li)

--- 279 unchanged lines hidden ---
1395 login(ut);
1396 free(ut);
1397
1398 return (1);
1399}
1400
1401static int
1402syslogin_perform_logout(struct logininfo *li)

--- 279 unchanged lines hidden ---