components/p7zip/patches/getpassphrase.patch
author Craig Mohrman <craig.mohrman@oracle.com>
Thu, 04 Aug 2016 08:26:36 -0700
changeset 6548 24913c16931e
parent 5923 125ce0e23ed8
permissions -rw-r--r--
PSARC/2016/303 enable rsyslog as default Solaris logger 24362425 rsyslog should degrade service if syslog.conf has been modified

--- p7zip_15.14.1/CPP/7zip/UI/Console/UserInputUtils.cpp	Fri Jun 19 09:25:18 2015
+++ p7zip_15.14.1/CPP/7zip/UI/Console/UserInputUtils.cpp	Tue Apr 19 13:43:59 2016
@@ -89,12 +89,12 @@
     outStream->Flush();
   }
 #ifdef ENV_HAVE_GETPASS
-  AString oemPassword = getpass("");
+  AString oemPassword = getpassphrase("");
   if ( (verify) && (outStream) )
   {
     (*outStream) << "Verify password (will not be echoed) :";
     outStream->Flush();
-    AString oemPassword2 = getpass("");
+    AString oemPassword2 = getpassphrase("");
     if (oemPassword != oemPassword2) throw "password verification failed";
   }
   return MultiByteToUnicodeString(oemPassword, CP_OEMCP);