mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
dont cal permanently settimeofday if operation not permitted
Origin commit data
------------------
Commit: 861017a95d
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-03-15 (Wed, 15 Mar 2017)
This commit is contained in:
@@ -1416,11 +1416,12 @@ bool CTimeThread::setSystemTime(time_t tim, bool force)
|
|||||||
|
|
||||||
tv.tv_sec = tim;
|
tv.tv_sec = tim;
|
||||||
tv.tv_usec = 0;
|
tv.tv_usec = 0;
|
||||||
|
errno=0;
|
||||||
if (settimeofday(&tv, NULL) == 0)
|
if (settimeofday(&tv, NULL) == 0)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
perror("[sectionsd] settimeofday");
|
perror("[sectionsd] settimeofday");
|
||||||
return false;
|
return errno==EPERM;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CTimeThread::addFilters()
|
void CTimeThread::addFilters()
|
||||||
|
Reference in New Issue
Block a user