clock_settime02: fix for linux kernel >= 4.2

In linux 4.2 new check has been added to do_settimeofday64(). As a
result, one can't set the CLOCK_REALTIME time prior to (1970 + system
uptime).

 e1d7ba8735551ed79c7a0463a042353574b96da3
 "time: Always make sure wall_to_monotonic isn't positive"

To fix this change the seconds to be set by settimeofday() to gettimeofday() + 1s.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
1 file changed