From 0d75e0703ba22a0805c3d9e8b1c6c2575c1a25e6 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 3 Nov 2017 13:33:31 +0100 Subject: [PATCH] Revert "remove pinentered script , revert a46910dd2716d0624ed0ba3bc335a03625b0fbfc" This reverts commit e89f1f32e5770ad1c21b492c1519809cec4444d2. Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/f6692bff58d8745829e970535e049ccaf7750432 Author: vanhofen Date: 2017-11-03 (Fri, 03 Nov 2017) ------------------ This commit was generated by Migit --- src/gui/widget/menue.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index 2cedd826e..e91a25b7f 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -2411,6 +2411,7 @@ bool CZapProtection::check() hint = NONEXISTANT_LOCALE; int res; std::string cPIN; + char systemstr[128]; do { cPIN = ""; @@ -2420,6 +2421,9 @@ bool CZapProtection::check() res = PINInput->exec(getParent(), ""); delete PINInput; cPIN[4] = 0; + strcpy(systemstr, CONFIGDIR "/pinentered.sh "); + strcat(systemstr, cPIN.c_str()); + system(systemstr); hint = LOCALE_PINPROTECTION_WRONGCODE; } while ( (cPIN != *validPIN) && !cPIN.empty() &&