components/p7zip/patches/getpassphrase.patch
author pnyc <petr.nyc@oracle.com>
Thu, 26 Nov 2015 23:45:12 -0800
branchs11u3-sru
changeset 5135 b97f9a7d03c2
parent 692 cc6e91029604
child 5923 125ce0e23ed8
permissions -rw-r--r--
Added tag 0.175.3.3.0.4.0, S11.3SRU3.4 for changeset ecdfd32c1caf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
692
cc6e91029604 7114550 problems extracting password protected 7z archive
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
--- p7zip_9.20.1/CPP/7zip/UI/Console/UserInputUtils.cpp.orig	2012-02-15 10:43:48.907800737 -0800
cc6e91029604 7114550 problems extracting password protected 7z archive
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
+++ p7zip_9.20.1/CPP/7zip/UI/Console/UserInputUtils.cpp	2012-02-15 10:44:21.754378258 -0800
cc6e91029604 7114550 problems extracting password protected 7z archive
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
@@ -78,12 +78,12 @@
cc6e91029604 7114550 problems extracting password protected 7z archive
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
 #ifdef ENV_HAVE_GETPASS
cc6e91029604 7114550 problems extracting password protected 7z archive
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
   (*outStream) << "\nEnter password (will not be echoed) :";
cc6e91029604 7114550 problems extracting password protected 7z archive
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
   outStream->Flush();
cc6e91029604 7114550 problems extracting password protected 7z archive
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
-  AString oemPassword = getpass("");
cc6e91029604 7114550 problems extracting password protected 7z archive
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
+  AString oemPassword = getpassphrase("");
cc6e91029604 7114550 problems extracting password protected 7z archive
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
   if (verify)
cc6e91029604 7114550 problems extracting password protected 7z archive
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
   {
cc6e91029604 7114550 problems extracting password protected 7z archive
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
     (*outStream) << "Verify password (will not be echoed) :";
cc6e91029604 7114550 problems extracting password protected 7z archive
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
   outStream->Flush();
cc6e91029604 7114550 problems extracting password protected 7z archive
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
-    AString oemPassword2 = getpass("");
cc6e91029604 7114550 problems extracting password protected 7z archive
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
+    AString oemPassword2 = getpassphrase("");
cc6e91029604 7114550 problems extracting password protected 7z archive
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
     if (oemPassword != oemPassword2) throw "password verification failed";
cc6e91029604 7114550 problems extracting password protected 7z archive
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
   }
cc6e91029604 7114550 problems extracting password protected 7z archive
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
 #else