Merge branch 'fix-localfileinfo' into 'main'

gio: properly guard use of utimensat()

Closes #2766

See merge request GNOME/glib!2914
This commit is contained in:
Sebastian Dröge 2022-10-10 06:57:48 +00:00
commit aaf1bc0331

View File

@ -2800,6 +2800,7 @@ set_mtime_atime (char *filename,
return FALSE;
}
#if defined (HAVE_UTIMENSAT)
res = utimensat (AT_FDCWD, filename, times_n, 0);
if (res == -1)
{
@ -2811,6 +2812,7 @@ set_mtime_atime (char *filename,
g_strerror (errsv));
return FALSE;
}
#endif
return TRUE;
}
#endif