diff options
author | Sebastian Dröge <slomo@coaxion.net> | 2022-10-10 06:57:48 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@coaxion.net> | 2022-10-10 06:57:48 +0000 |
commit | aaf1bc0331f692e95452df524b930cccf0157539 (patch) | |
tree | 75c068391ba0b917630a819ecea8eef13c5fa2f8 | |
parent | 2f284193a7c6ba08d6a3bc37fc7138696d00d07c (diff) | |
parent | 7f7171e68a420991b537d3e9e63263a0b2871618 (diff) | |
download | glib-aaf1bc0331f692e95452df524b930cccf0157539.tar.gz |
Merge branch 'fix-localfileinfo' into 'main'
gio: properly guard use of utimensat()
Closes #2766
See merge request GNOME/glib!2914
-rw-r--r-- | gio/glocalfileinfo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c index 6f186957a..c9e5c8b64 100644 --- a/gio/glocalfileinfo.c +++ b/gio/glocalfileinfo.c @@ -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 |