From 0b221325abd24fd3c9a618ef0b1678d9ca9f2b65 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Wed, 7 Sep 2016 17:45:49 +0200 Subject: [PATCH] fix CFileHelpers.copyFile() mode again; this time for real Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/6098eb8e17137daf35f847a02820a16bcb476f19 Author: vanhofen Date: 2016-09-07 (Wed, 07 Sep 2016) Origin message was: ------------------ - fix CFileHelpers.copyFile() mode again; this time for real ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/epgview.cpp | 2 +- src/gui/infoviewer_bb.cpp | 2 +- src/gui/moviebrowser/mb.cpp | 2 +- src/gui/ni_menu.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/epgview.cpp b/src/gui/epgview.cpp index 25c1cd57c..25d6d39b7 100644 --- a/src/gui/epgview.cpp +++ b/src/gui/epgview.cpp @@ -1270,7 +1270,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start picname = imdb->getFilename(channel, epgData.eventID); CFileHelpers fh; - if (!fh.copyFile(imdb->posterfile.c_str(), picname.c_str(), 644)) + if (!fh.copyFile(imdb->posterfile.c_str(), picname.c_str(), 0644)) perror( "IMDb: error copy file" ); sleep(2); diff --git a/src/gui/infoviewer_bb.cpp b/src/gui/infoviewer_bb.cpp index 7ce4d64d8..e1fd9a59a 100644 --- a/src/gui/infoviewer_bb.cpp +++ b/src/gui/infoviewer_bb.cpp @@ -1084,7 +1084,7 @@ int CInfoViewerBB::check_ecmInfo() { int caid = 0; CFileHelpers fh; - if (fh.copyFile("/tmp/ecm.info", "/tmp/ecm.info.tmp", 644)) { + if (fh.copyFile("/tmp/ecm.info", "/tmp/ecm.info.tmp", 0644)) { g_InfoViewer->md5_ecmInfo = filehash((char *)"/tmp/ecm.info.tmp"); caid = parse_ecmInfo("/tmp/ecm.info.tmp"); } diff --git a/src/gui/moviebrowser/mb.cpp b/src/gui/moviebrowser/mb.cpp index 9b2212365..45ebafbc8 100644 --- a/src/gui/moviebrowser/mb.cpp +++ b/src/gui/moviebrowser/mb.cpp @@ -798,7 +798,7 @@ int CMovieBrowser::exec(CMenuTarget* parent, const std::string & actionKey) poster = m_movieSelectionHandler->file.Name.substr(0, pos); poster += ".jpg"; CFileHelpers fh; - if (fh.copyFile(imdb->posterfile.c_str(), poster.c_str(), 644)) + if (fh.copyFile(imdb->posterfile.c_str(), poster.c_str(), 0644)) printf("* poster: %s\n", poster.c_str()); else printf("* poster: copy error\n"); diff --git a/src/gui/ni_menu.cpp b/src/gui/ni_menu.cpp index b411dd47b..5e7d7e753 100644 --- a/src/gui/ni_menu.cpp +++ b/src/gui/ni_menu.cpp @@ -157,7 +157,7 @@ int CNIMenu::exec(CMenuTarget* parent, const std::string &actionkey) buffer=NULL; CFileHelpers fhlp; - if (fhlp.copyFile("/tmp/ecm.info", "/tmp/ecm.info.tmp", 644)) + if (fhlp.copyFile("/tmp/ecm.info", "/tmp/ecm.info.tmp", 0644)) { if ((fh = fopen("/tmp/ecm.info.tmp", "r"))) {