From a46910dd2716d0624ed0ba3bc335a03625b0fbfc Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Mon, 3 Oct 2011 00:00:25 +0200 Subject: [PATCH] neutrino: call a script after a PIN is entered Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/9dbdfcf5c7e813c67f44b3255881fd0fe344ad4d Author: Stefan Seyfried Date: 2011-10-03 (Mon, 03 Oct 2011) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/widget/menue.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index 87c74bae2..208c03c31 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -1754,6 +1754,7 @@ bool CZapProtection::check() { int res; char cPIN[5]; + char systemstr[128]; do { cPIN[0] = 0; @@ -1762,6 +1763,10 @@ bool CZapProtection::check() res = PINInput->exec(getParent(), ""); delete PINInput; + cPIN[4] = 0; + strcpy(systemstr, CONFIGDIR "/pinentered.sh "); + strcat(systemstr, cPIN); + system(systemstr); hint = LOCALE_PINPROTECTION_WRONGCODE; } while ( (strncmp(cPIN,validPIN,4) != 0) &&