patch-rarcrack_h 821 B

1234567891011121314151617
  1. $OpenBSD: patch-rarcrack_h,v 1.1.1.1 2008/06/11 21:55:36 laurent Exp $
  2. --- rarcrack.h.orig Sat May 3 22:45:31 2008
  3. +++ rarcrack.h Sat May 3 22:57:08 2008
  4. @@ -31,10 +31,10 @@
  5. char default_ABC[] = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
  6. -const char CMD_DETECT[] = "file -i -b %s"; //this command return what is the file mime type
  7. +const char CMD_DETECT[] = "file -b %s"; //this command return what is the file mime type
  8. const char* TYPE[] = {"rar", "7z", "zip", ""}; //the last "" signing this is end of the list
  9. -const char* MIME[] = {"application/x-rar", "application/octet-stream", "application/x-zip", ""};
  10. +const char* MIME[] = {"RAR", "7z", "Zip", ""};
  11. const char* CMD[] = {"unrar t -y -p%s %s 2>&1", "7z t -y -p%s %s 2>&1", "unzip -P%s -t %s 2>&1", ""};
  12. #define PWD_LEN 100