diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-09-01 23:05:26 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-09-01 23:05:26 +0000 |
commit | 39a5b78f8797ded2c50107a77794cd671dff707f (patch) | |
tree | 39f650e2e85c255908675444e0ce32d9639f251f /net/tac_plus-libradius/files/patch-do_acct.c | |
parent | Remove non staged ports without pending PR from net-im and net-mgmt (diff) |
Remove non staged ports without pending PR from net-p2p, net and news
Notes
Notes:
svn path=/head/; revision=366967
Diffstat (limited to 'net/tac_plus-libradius/files/patch-do_acct.c')
-rw-r--r-- | net/tac_plus-libradius/files/patch-do_acct.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/net/tac_plus-libradius/files/patch-do_acct.c b/net/tac_plus-libradius/files/patch-do_acct.c deleted file mode 100644 index ffa659850d93..000000000000 --- a/net/tac_plus-libradius/files/patch-do_acct.c +++ /dev/null @@ -1,25 +0,0 @@ ---- ./do_acct.c.orig 2000-12-18 17:58:02.000000000 +0100 -+++ ./do_acct.c 2011-08-29 00:31:55.000000000 +0200 -@@ -21,6 +21,13 @@ - - static int acctfd = 0; - -+#if defined(__FreeBSD__) && __FreeBSD_version >= 900007 -+# define utmp utmpx -+# define ut_time ut_tv.tv_sec -+# define ut_name ut_user -+#endif -+ -+ - /* Make a acct entry into the accounting file for accounting. - Return 1 on error */ - -@@ -159,7 +166,7 @@ - #endif - entry.ut_time = utime; - -- wtmpfd = open(wtmpfile, O_CREAT | O_WRONLY | O_APPEND | O_SYNC, 0644); -+ wtmpfd = open(wtmpfile, O_CREAT | O_WRONLY | O_APPEND , 0644); - if (wtmpfd < 0) { - report(LOG_ERR, "Can't open wtmp file %s -- %s", - wtmpfile, sys_errlist[errno]); |