403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.168
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/deskutils/plan/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/deskutils/plan/files/patch-utmpx-src-daemon.c
--- daemon.c.orig	2010-01-25 17:34:06.000000000 -0800
+++ daemon.c	2010-01-25 17:38:29.000000000 -0800
@@ -42,7 +42,7 @@
 #ifdef __EMX__
 #include <io.h>
 #else
-#include <utmp.h>
+#include <utmpx.h>
 #endif
 #ifdef AIXV3
 struct utmp *getutent();
@@ -266,7 +266,7 @@
 		refresh_lock(resolve_tilde(PLANDLOCK));
 		logged_in = FALSE;
 		if (pw) {
-#if defined(SUN) || defined(BSD) || defined(__FreeBSD__)
+#if defined(SUN)
 		    struct utmp	ut;
 		    int		fd;
 		    int		l;
@@ -289,9 +289,9 @@
 		    logged_in = TRUE;
 #else
 		    short pid = getpid();
-		    struct utmp *u;
-		    setutent();
-		    while ((u = getutent()))
+		    struct utmpx *u;
+		    setutxent();
+		    while ((u = getutxent()))
 			if (u->ut_type == USER_PROCESS &&
 			    u->ut_pid != pid &&
 			    !strncmp(pw->pw_name, u->ut_user, 8)) {

Youez - 2016 - github.com/yon3zu
LinuXploit