Deleted Added
full compact
logwtmp.c (22989) logwtmp.c (29140)
1/*
2 * Copyright (c) 1988, 1993
3 * The Regents of the University of California. 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

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

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
1/*
2 * Copyright (c) 1988, 1993
3 * The Regents of the University of California. 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

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

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * $Id$
33 * $Id: logwtmp.c,v 1.5 1997/02/22 14:21:29 peter Exp $
34 */
35
36#ifndef lint
37static char sccsid[] = "@(#)logwtmp.c 8.1 (Berkeley) 6/4/93";
38#endif /* not lint */
39
40#include <sys/types.h>
41#include <sys/stat.h>

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

54static int fd = -1;
55
56/*
57 * Modified version of logwtmp that holds wtmp file open
58 * after first call, for use with ftp (which may chroot
59 * after login, but before logout).
60 */
61void
34 */
35
36#ifndef lint
37static char sccsid[] = "@(#)logwtmp.c 8.1 (Berkeley) 6/4/93";
38#endif /* not lint */
39
40#include <sys/types.h>
41#include <sys/stat.h>

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

54static int fd = -1;
55
56/*
57 * Modified version of logwtmp that holds wtmp file open
58 * after first call, for use with ftp (which may chroot
59 * after login, but before logout).
60 */
61void
62logwtmp(line, name, host)
62ftpd_logwtmp(line, name, host)
63 char *line, *name, *host;
64{
65 struct utmp ut;
66 struct stat buf;
67
68 if (strlen(host) > UT_HOSTSIZE) {
69 struct hostent *hp = gethostbyname(host);
70

--- 21 unchanged lines hidden ---
63 char *line, *name, *host;
64{
65 struct utmp ut;
66 struct stat buf;
67
68 if (strlen(host) > UT_HOSTSIZE) {
69 struct hostent *hp = gethostbyname(host);
70

--- 21 unchanged lines hidden ---