7114550 problems extracting password protected 7z archive
authorRich Burridge <rich.burridge@oracle.com>
Thu, 16 Feb 2012 05:27:59 -0800
changeset 692 cc6e91029604
parent 691 74d8d6d664fa
child 693 15d71a1e47d6
7114550 problems extracting password protected 7z archive
components/p7zip/patches/getpassphrase.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/p7zip/patches/getpassphrase.patch	Thu Feb 16 05:27:59 2012 -0800
@@ -0,0 +1,17 @@
+--- p7zip_9.20.1/CPP/7zip/UI/Console/UserInputUtils.cpp.orig	2012-02-15 10:43:48.907800737 -0800
++++ p7zip_9.20.1/CPP/7zip/UI/Console/UserInputUtils.cpp	2012-02-15 10:44:21.754378258 -0800
[email protected]@ -78,12 +78,12 @@
+ #ifdef ENV_HAVE_GETPASS
+   (*outStream) << "\nEnter password (will not be echoed) :";
+   outStream->Flush();
+-  AString oemPassword = getpass("");
++  AString oemPassword = getpassphrase("");
+   if (verify)
+   {
+     (*outStream) << "Verify password (will not be echoed) :";
+   outStream->Flush();
+-    AString oemPassword2 = getpass("");
++    AString oemPassword2 = getpassphrase("");
+     if (oemPassword != oemPassword2) throw "password verification failed";
+   }
+ #else