403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/net/gnu-radius/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/net/gnu-radius/files/patch-radwho_radwho.c
--- radwho/radwho.c.orig	2008-12-15 08:03:24 UTC
+++ radwho/radwho.c
@@ -41,7 +41,8 @@ void print_header();
 int want_rad_record(struct radutmp *rt);
 
 /* UTMP stuff. Uses utmpx on svr4 */
-#if defined(__svr4__) || defined(__sgi)  
+#include <sys/param.h>
+#if defined(__svr4__) || defined(__sgi) || (defined(__FreeBSD__) && __FreeBSD_version >= 900007)
 #  include <utmpx.h>
 #  include <sys/fcntl.h>
 #  define utmp utmpx
@@ -49,7 +50,9 @@ int want_rad_record(struct radutmp *rt);
 #  define UT_LINESIZE   32
 #  define UT_HOSTSIZE   257
 #  undef UTMP_FILE
+/*
 #  define UTMP_FILE UTMPX_FILE
+*/
 #  undef WTMP_FILE
 #  define WTMP_FILE WTMPX_FILE
 #else
@@ -60,13 +63,19 @@ int want_rad_record(struct radutmp *rt);
 #  define UT_LINESIZE   32
 #  define UT_HOSTSIZE   64
 #endif
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(bsdi)
+#if (defined(__FreeBSD__) && __FreeBSD_version < 900007) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(bsdi)
 #  ifndef UTMP_FILE
 #    define UTMP_FILE "/var/run/utmp"
 #  endif
 #  define ut_user ut_name
 #endif
 
+#if defined(__FreeBSD__) && __FreeBSD_version >= 900007
+#  define UTMP_FILE "/var/run/utmp"
+#  define ut_name ut_user
+#  define ut_time ut_tv.tv_sec
+#endif
+
 #define P_CONSOLE -1  /* Special radutmp type value for local users */
 
 int  fingerd;             /* Are we run as fingerd */

Youez - 2016 - github.com/yon3zu
LinuXploit