Replace obsolete utime() usage with utimes().

This fixes build time warnings with POSIX.1-2008-aware c libraries.
This commit is contained in:
Vladislav Grishenko
2017-05-03 23:16:51 +01:00
committed by Simon Kelley
parent 561441320f
commit 4583dd9e42
3 changed files with 8 additions and 7 deletions

View File

@@ -1375,7 +1375,7 @@ static void async_event(int pipe, time_t now)
/* update timestamp file on TERM if time is considered valid */
if (daemon->back_to_the_future)
{
if (utime(daemon->timestamp_file, NULL) == -1)
if (utimes(daemon->timestamp_file, NULL) == -1)
my_syslog(LOG_ERR, _("failed to update mtime on %s: %s"), daemon->timestamp_file, strerror(errno));
}
#endif