mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
neutrino: call a script after a PIN is entered
Origin commit data
------------------
Branch: ni/coolstream
Commit: 9dbdfcf5c7
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-10-03 (Mon, 03 Oct 2011)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1754,6 +1754,7 @@ bool CZapProtection::check()
|
|||||||
{
|
{
|
||||||
int res;
|
int res;
|
||||||
char cPIN[5];
|
char cPIN[5];
|
||||||
|
char systemstr[128];
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
cPIN[0] = 0;
|
cPIN[0] = 0;
|
||||||
@@ -1762,6 +1763,10 @@ bool CZapProtection::check()
|
|||||||
|
|
||||||
res = PINInput->exec(getParent(), "");
|
res = PINInput->exec(getParent(), "");
|
||||||
delete PINInput;
|
delete PINInput;
|
||||||
|
cPIN[4] = 0;
|
||||||
|
strcpy(systemstr, CONFIGDIR "/pinentered.sh ");
|
||||||
|
strcat(systemstr, cPIN);
|
||||||
|
system(systemstr);
|
||||||
|
|
||||||
hint = LOCALE_PINPROTECTION_WRONGCODE;
|
hint = LOCALE_PINPROTECTION_WRONGCODE;
|
||||||
} while ( (strncmp(cPIN,validPIN,4) != 0) &&
|
} while ( (strncmp(cPIN,validPIN,4) != 0) &&
|
||||||
|
Reference in New Issue
Block a user