mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user