dont cal permanently settimeofday if operation not permitted

Origin commit data
------------------
Branch: ni/coolstream
Commit: 861017a95d
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-03-15 (Wed, 15 Mar 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2017-03-15 14:54:32 +01:00
parent 3b136d0bc5
commit 458cec79b0

View File

@@ -1416,11 +1416,12 @@ bool CTimeThread::setSystemTime(time_t tim, bool force)
tv.tv_sec = tim;
tv.tv_usec = 0;
errno=0;
if (settimeofday(&tv, NULL) == 0)
return true;
perror("[sectionsd] settimeofday");
return false;
return errno==EPERM;
}
void CTimeThread::addFilters()