Our utimes() emulation support futime() too.

This commit is contained in:
Todd C. Miller
2015-02-28 15:13:19 -07:00
parent 74d3745cc6
commit f25cf99679
2 changed files with 2 additions and 2 deletions

View File

@@ -244,7 +244,7 @@ sudo_edit_create_tfiles(struct command_details *command_details,
*/
times[0].tv_sec = times[1].tv_sec = tf[j].omtim.tv_sec;
times[0].tv_usec = times[1].tv_usec = tf[j].omtim.tv_usec;
#ifdef HAVE_FUTIMES
#if defined(HAVE_FUTIMES) || defined(HAVE_FUTIME)
(void) futimes(tfd, times);
#else
(void) utimes(tf[j].tfile, times);