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/devel/dbus-sharp/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/devel/dbus-sharp/files/patch-src_Transports_UnixNativeTransport.cs
--- src/Transports/UnixNativeTransport.cs.orig	2014-06-24 17:10:54 UTC
+++ src/Transports/UnixNativeTransport.cs
@@ -94,10 +94,8 @@ namespace DBus.Transports
 
 			byte[] sa = new byte[2 + p.Length + 1];
 
-			//we use BitConverter to stay endian-safe
-			byte[] afData = BitConverter.GetBytes (UnixSocket.AF_UNIX);
-			sa[0] = afData[0];
-			sa[1] = afData[1];
+			sa[0] = (byte) sa.Length;
+			sa[1] = 1; /* AF_UNIX */
 
 			for (int i = 0 ; i != p.Length ; i++)
 				sa[2 + i] = p[i];
@@ -112,10 +110,8 @@ namespace DBus.Transports
 
 			byte[] sa = new byte[2 + 1 + p.Length];
 
-			//we use BitConverter to stay endian-safe
-			byte[] afData = BitConverter.GetBytes (UnixSocket.AF_UNIX);
-			sa[0] = afData[0];
-			sa[1] = afData[1];
+			sa[0] = (byte) sa.Length;
+			sa[1] = 1; /* AF_UNIX */
 
 			sa[2] = 0; //null prefix for abstract domain socket addresses, see unix(7)
 			for (int i = 0 ; i != p.Length ; i++)

Youez - 2016 - github.com/yon3zu
LinuXploit