tst_wallclock: Prevent fail on read-only /etc/localtime
PATCH 1/1 tst_wallclock: Prevent fail on read-only /etc/localtime
From: Joerg Vehlow <[email protected]>
If /etc/localtime is readonly, the time should not have changed anyway.
Signed-off-by Joerg Vehlow <[email protected]>
--- lib/tst_wallclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/tst_wallclock.c +1 -1
@@ -72,7 +72,7 @@ void tst_wallclock_restore(void)* might not be enough because the current access time might be far * in the future. */ - ret =access (localtime,F_OK ); + ret =access (localtime,F_OK |W_OK );if (!ret)SAFE_TOUCH (localtime,0 ,NULL ); }
Signature · 1 line
2.25.1
PATCH 1/1 tst_wallclock: Prevent fail on read-only /etc/localtime
Petr Vorel
AppliedPATCH 1/1 tst_wallclock: Prevent fail on read-only /etc/localtime
Hi Joerg, all,
merged, thanks!
Kind regards,
Petr