mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
Revert "remove pinentered script , revert a46910dd2716d0624ed0ba3bc335a03625b0fbfc"
This reverts commite89f1f32e5
. Origin commit data ------------------ Branch: ni/coolstream Commit:f6692bff58
Author: vanhofen <vanhofen@gmx.de> Date: 2017-11-03 (Fri, 03 Nov 2017) ------------------ This commit was generated by Migit
This commit is contained in:
@@ -2411,6 +2411,7 @@ bool CZapProtection::check()
|
|||||||
hint = NONEXISTANT_LOCALE;
|
hint = NONEXISTANT_LOCALE;
|
||||||
int res;
|
int res;
|
||||||
std::string cPIN;
|
std::string cPIN;
|
||||||
|
char systemstr[128];
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
cPIN = "";
|
cPIN = "";
|
||||||
@@ -2420,6 +2421,9 @@ bool CZapProtection::check()
|
|||||||
res = PINInput->exec(getParent(), "");
|
res = PINInput->exec(getParent(), "");
|
||||||
delete PINInput;
|
delete PINInput;
|
||||||
cPIN[4] = 0;
|
cPIN[4] = 0;
|
||||||
|
strcpy(systemstr, CONFIGDIR "/pinentered.sh ");
|
||||||
|
strcat(systemstr, cPIN.c_str());
|
||||||
|
system(systemstr);
|
||||||
|
|
||||||
hint = LOCALE_PINPROTECTION_WRONGCODE;
|
hint = LOCALE_PINPROTECTION_WRONGCODE;
|
||||||
} while ( (cPIN != *validPIN) && !cPIN.empty() &&
|
} while ( (cPIN != *validPIN) && !cPIN.empty() &&
|
||||||
|
Reference in New Issue
Block a user