1
0
mirror of https://gitlab.gnome.org/GNOME/glib.git synced 2025-08-05 08:53:39 +02:00

Merge branch 'mtime-fix' into 'main'

glocalfileinfo: Don't reset mtime tv_sec when setting tv_usec

See merge request 
This commit is contained in:
Philip Withnall
2023-01-05 14:40:15 +00:00

@@ -2883,6 +2883,7 @@ set_mtime_atime (char *filename,
{
if (lazy_stat (filename, &statbuf, &got_stat) == 0)
{
times_n[1].tv_sec = statbuf.st_mtime;
#if defined (HAVE_STRUCT_STAT_ST_MTIMENSEC)
times_n[1].tv_nsec = statbuf.st_mtimensec;
#elif defined (HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC)