components/p7zip/patches/getpassphrase.patch
changeset 692 cc6e91029604
child 5923 125ce0e23ed8
--- /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
+@@ -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