summaryrefslogtreecommitdiff
path: root/security/krb5-16/files/patch-aj
blob: 29e8458032940aabb168b047b26ec0a1eb3a519f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
*** appl/gssftp/ftpd/logwtmp.c.ORIG	Fri Feb  6 19:41:25 1998
--- appl/gssftp/ftpd/logwtmp.c	Tue Jun 30 19:46:01 1998
***************
*** 44,55 ****
  #include <unistd.h>
  #include <string.h>
  
! #ifdef WTMP_FILE
! #define WTMPFILE WTMP_FILE
  #endif
  
! #ifndef WTMPFILE
! #define	WTMPFILE	"/usr/adm/wtmp"
  #endif
  
  static int fd = -1;
--- 44,55 ----
  #include <unistd.h>
  #include <string.h>
  
! #if !defined(WTMP_FILE) && defined(_PATH_WTMP)
! #define WTMP_FILE _PATH_WTMP
  #endif
  
! #ifndef WTMP_FILE
! #define	WTMP_FILE "/usr/adm/wtmp"
  #endif
  
  static int fd = -1;
***************
*** 66,72 ****
  	struct stat buf;
  	time_t time();
  
! 	if (fd < 0 && (fd = open(WTMPFILE, O_WRONLY|O_APPEND, 0)) < 0)
  		return;
  	if (fstat(fd, &buf) == 0) {
  		(void)strncpy(ut.ut_line, line, sizeof(ut.ut_line));
--- 66,72 ----
  	struct stat buf;
  	time_t time();
  
! 	if (fd < 0 && (fd = open(WTMP_FILE, O_WRONLY|O_APPEND, 0)) < 0)
  		return;
  	if (fstat(fd, &buf) == 0) {
  		(void)strncpy(ut.ut_line, line, sizeof(ut.ut_line));