mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
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:
commit
aaf1bc0331
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user