diff options
author | Leo <thinkabit.ukim@gmail.com> | 2020-03-16 02:26:02 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-03-23 12:07:30 -0300 |
commit | 41ab224df12b8487004a1522b4f671680c082954 (patch) | |
tree | 9ebbc4ea5d1cfb82757ca1fd862b67e444a712a2 /community/vsftpd/wtmpx_file.patch | |
parent | 1f40937c55d742c7ae05db34c966c3dd2d6595e7 (diff) | |
download | aports-41ab224df12b8487004a1522b4f671680c082954.tar.bz2 aports-41ab224df12b8487004a1522b4f671680c082954.tar.xz |
community/*: move lots of stuff from main and modernize
Diffstat (limited to 'community/vsftpd/wtmpx_file.patch')
-rw-r--r-- | community/vsftpd/wtmpx_file.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/community/vsftpd/wtmpx_file.patch b/community/vsftpd/wtmpx_file.patch new file mode 100644 index 0000000000..6ca8416933 --- /dev/null +++ b/community/vsftpd/wtmpx_file.patch @@ -0,0 +1,35 @@ +diff -rupN a/seccompsandbox.c b/seccompsandbox.c +--- a/seccompsandbox.c 2012-09-18 08:52:30.000000000 +0200 ++++ b/seccompsandbox.c 2014-02-05 20:22:15.919607188 +0100 +@@ -21,7 +21,7 @@ + + #include <netinet/in.h> + +-#include <sys/fcntl.h> ++#include <fcntl.h> + #include <sys/mman.h> + #include <sys/prctl.h> + #include <sys/socket.h> +diff -rupN a/sysdeputil.c b/sysdeputil.c +--- a/sysdeputil.c 2012-09-16 06:18:04.000000000 +0200 ++++ b/sysdeputil.c 2014-02-05 20:20:07.212933389 +0100 +@@ -1216,7 +1216,9 @@ vsf_insert_uwtmp(const struct mystr* p_u + setutxent(); + (void) pututxline(&s_utent); + endutxent(); ++#if defined(WTMPX_FILE) + updwtmpx(WTMPX_FILE, &s_utent); ++#endif + } + + void +@@ -1235,7 +1237,9 @@ vsf_remove_uwtmp(void) + (void) pututxline(&s_utent); + endutxent(); + s_utent.ut_tv.tv_sec = vsf_sysutil_get_time_sec(); ++#if defined(WTMPX_FILE) + updwtmpx(WTMPX_FILE, &s_utent); ++#endif + } + + #endif /* !VSF_SYSDEP_HAVE_UTMPX */ |