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/x11/nxcomp/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/x11/nxcomp/files/patch-Loop.cpp
Loop.cpp:6751:61: error: invalid operands to binary expression ('__bind<int &, sockaddr *, unsigned long>' and 'int')
  if (bind(proxyFD, (sockaddr *) &tcpAddr, sizeof(tcpAddr)) == -1)
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~
            /usr/include/c++/v1/system_error:577:1: note: candidate function not viable: no known conversion from '__bind<int &, sockaddr *, unsigned long>' to 'const std::__1::error_code' for 1st argument
            operator==(const error_code& __x, const error_code& __y) _NOEXCEPT
            ^

--- Loop.cpp.orig	2018-07-07 17:44:11 UTC
+++ Loop.cpp
@@ -3969,7 +3969,7 @@ int SetupTcpSocket()
     tcpAddr.sin_addr.s_addr = htonl(INADDR_ANY);
   }
 
-  if (bind(tcpFD, (sockaddr *) &tcpAddr, sizeof(tcpAddr)) == -1)
+  if (::bind(tcpFD, (sockaddr *) &tcpAddr, sizeof(tcpAddr)) == -1)
   {
     #ifdef PANIC
     *logofs << "Loop: PANIC! Call to bind failed for TCP port "
@@ -4055,7 +4055,7 @@ int SetupUnixSocket()
 
   *(unixAddr.sun_path + 107) = '\0';
 
-  if (bind(unixFD, (sockaddr *) &unixAddr, sizeof(unixAddr)) == -1)
+  if (::bind(unixFD, (sockaddr *) &unixAddr, sizeof(unixAddr)) == -1)
   {
     #ifdef PANIC
     *logofs << "Loop: PANIC! Call to bind failed for UNIX domain socket "
@@ -4567,7 +4567,7 @@ int ListenConnection(int port, const char *label)
     tcpAddr.sin_addr.s_addr = htonl(INADDR_ANY);
   }
 
-  if (bind(newFD, (sockaddr *) &tcpAddr, sizeof(tcpAddr)) == -1)
+  if (::bind(newFD, (sockaddr *) &tcpAddr, sizeof(tcpAddr)) == -1)
   {
     #ifdef PANIC
     *logofs << "Loop: PANIC! Call to bind failed for " << label
@@ -6748,7 +6748,7 @@ int WaitForRemote(int portNum)
 
   #endif
 
-  if (bind(proxyFD, (sockaddr *) &tcpAddr, sizeof(tcpAddr)) == -1)
+  if (::bind(proxyFD, (sockaddr *) &tcpAddr, sizeof(tcpAddr)) == -1)
   {
     #ifdef PANIC
     *logofs << "Loop: PANIC! Call to bind failed for TCP port "

Youez - 2016 - github.com/yon3zu
LinuXploit