fix CFileHelpers.copyFile() mode again; this time for real

Origin commit data
------------------
Commit: 6098eb8e17
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-09-07 (Wed, 07 Sep 2016)

Origin message was:
------------------
- fix CFileHelpers.copyFile() mode again; this time for real
This commit is contained in:
vanhofen
2016-09-07 17:45:49 +02:00
parent 28a833a1f3
commit 843d10dee7
4 changed files with 4 additions and 4 deletions

View File

@@ -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);

View File

@@ -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");
}

View File

@@ -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");

View File

@@ -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")))
{