summaryrefslogtreecommitdiff
path: root/ftp/vsftpd/files/patch-sysdeputil.c
blob: 77124fec1d216172438a329440086948d8b1fec2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- sysdeputil.c.orig	2009-11-12 04:16:15.000000000 +0100
+++ sysdeputil.c	2010-01-26 22:30:10.000000000 +0100
@@ -1213,7 +1213,9 @@
   setutxent();
   (void) pututxline(&s_utent);
   endutxent();
+#if !defined(__FreeBSD__)
   updwtmpx(WTMPX_FILE, &s_utent);
+#endif
 }
 
 void
@@ -1232,7 +1234,9 @@
   (void) pututxline(&s_utent);
   endutxent();
   s_utent.ut_tv.tv_sec = vsf_sysutil_get_time_sec();
+#if !defined(__FreeBSD__)
   updwtmpx(WTMPX_FILE, &s_utent);
+#endif
 }
 
 #endif /* !VSF_SYSDEP_HAVE_UTMPX */