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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/sysutils/recoverdm/files/patch-recoverdm.c
--- recoverdm.c.orig	2009-07-25 22:13:33.105079513 +0900
+++ recoverdm.c	2009-07-25 22:17:04.086068813 +0900
@@ -181,7 +181,7 @@
 
 		if (rc == 0)
 		{
-			if (create_sector(sector_list, n_raw_retries, block_size, &dummy) == -1)
+			if (create_sector((unsigned char **)sector_list, n_raw_retries, block_size, &dummy) == -1)
 				rc = -1;
 		}
 
@@ -267,7 +267,7 @@
 		case 'V':
 			return 0;
 		case 'b':
-			start_offset = atoll(optarg);
+			start_offset = strtoll(optarg, (char **)NULL, 10);
 			break;
 		case '?':
 		case 'h':
@@ -307,7 +307,7 @@
 	buffer = (char *)mymalloc(block_size, "sectorbuffer");
 	buffer2 = (char *)mymalloc(block_size, "sectorbuffer for retries");
 
-	fdout = open64(file_out, O_WRONLY | O_CREAT | O_EXCL | O_SYNC, S_IRUSR | S_IWUSR);
+	fdout = open64(file_out, O_WRONLY | O_CREAT | O_EXCL | O_FSYNC, S_IRUSR | S_IWUSR);
 	if (fdout == -1)
 	{
 		printf("Cannot create file %s! (%s)\n", file_out, strerror(errno));
@@ -442,7 +442,7 @@
 				/* always mark the sector as tricky */
 				if (dsecfile)
 				{
-					fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value);
+					fprintf(dsecfile, "%lld %ld\n", curpos, (long)(block_size*skip_value));
 					fflush(dsecfile);
 				}
 

Youez - 2016 - github.com/yon3zu
LinuXploit