403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
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/shells/bicon/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/shells/bicon/files/patch-bicon_pty__spawn.c
--- bicon/pty_spawn.c.orig	2015-08-20 10:07:00 UTC
+++ bicon/pty_spawn.c
@@ -13,7 +13,13 @@ namely the PSF License Agreement For Python 2.2.3
 #include <string.h>
 #include <unistd.h>
 #include <errno.h>
+#ifdef __linux__
 #include <pty.h>
+#endif
+#ifdef __FreeBSD__
+#include <termios.h>
+#include <sys/ioctl.h>
+#endif
 #include <sys/time.h>
 #include <sys/types.h>
 #include <sys/select.h>
@@ -119,7 +125,7 @@ _copy (
       {
 	if (errno == EINTR && !done)
 	  continue;
-	return;
+	return 0;
       }
       if (0 == ret)
       {
@@ -150,14 +156,14 @@ _copy (
 	{
 	  count = _xread (master_read, master_fd, buf, sizeof (buf));
 	  if (count == -1)
-	    return;
+	    return 0;
 	  _xwrite (1, buf, count);
 	}
       if (FD_ISSET (0, &rfds))
 	{
 	  count = _xread (stdin_read, 0, buf, sizeof (buf));
 	  if (count == -1)
-	    return;
+	    return 0;
 	  _xwrite (master_fd, buf, count);
 	}
       /* Set timeout, such that if things are steady, we update cwd

Youez - 2016 - github.com/yon3zu
LinuXploit