mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
Merge branch 'ni/tuxbox' into ni/mp/tuxbox
Origin commit data
------------------
Commit: 6dd6df52fb
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-09-18 (Mon, 18 Sep 2017)
This commit is contained in:
@@ -144,13 +144,14 @@ bool CTouchFileNotifier::changeNotify(const neutrino_locale_t, void * data)
|
||||
bool CFlagFileNotifier::changeNotify(const neutrino_locale_t, void * data)
|
||||
{
|
||||
std::ostringstream buf;
|
||||
buf.str("");
|
||||
buf << FLAGDIR << "/." << filename;
|
||||
|
||||
const char *flagfile = buf.str().c_str();
|
||||
std::string flagfile = buf.str();
|
||||
|
||||
if ((*(int *)data) != 0)
|
||||
{
|
||||
FILE * fd = fopen(flagfile, "w");
|
||||
FILE * fd = fopen(flagfile.c_str(), "w");
|
||||
if (fd)
|
||||
{
|
||||
fclose(fd);
|
||||
@@ -247,7 +248,7 @@ bool CFlagFileNotifier::changeNotify(const neutrino_locale_t, void * data)
|
||||
if (my_system(3, "service", filename, "stop") != 0)
|
||||
printf("[CFlagFileNotifier] executing failed\n");
|
||||
}
|
||||
remove(flagfile);
|
||||
remove(flagfile.c_str());
|
||||
}
|
||||
return menu_return::RETURN_REPAINT;
|
||||
}
|
||||
|
Reference in New Issue
Block a user