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/security/gvm-libs/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/security/gvm-libs/files/patch-osp_osp.c
--- osp/osp.c	2022-07-18 03:40:56.000000000 -0500
+++ osp/osp.c	2022-07-31 18:21:56.704338000 -0500
@@ -141,7 +141,9 @@
   if (host && *host == '/')
     {
       struct sockaddr_un addr;
+#if !defined(__FreeBSD__)
       int len;
+#endif
 
       connection = g_malloc0 (sizeof (*connection));
       connection->socket = socket (AF_UNIX, SOCK_STREAM, 0);
@@ -152,10 +154,15 @@
         }
 
       addr.sun_family = AF_UNIX;
+#if defined (__FreeBSD__)
+      strcpy (addr.sun_path, host);
+      if (connect (connection->socket, (struct sockaddr *) &addr, sizeof(struct sockaddr_un)) == -1)
+#else
       memset (addr.sun_path, 0, sizeof (addr.sun_path));
       memcpy (addr.sun_path, host, sizeof (addr.sun_path) - 1);
       len = strlen (addr.sun_path) + sizeof (addr.sun_family);
       if (connect (connection->socket, (struct sockaddr *) &addr, len) == -1)
+#endif
         {
           close (connection->socket);
           g_free (connection);

Youez - 2016 - github.com/yon3zu
LinuXploit