[glib: 1/2] gio: properly guard use of utimensat()
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] gio: properly guard use of utimensat()
- Date: Mon, 10 Oct 2022 06:57:49 +0000 (UTC)
commit 7f7171e68a420991b537d3e9e63263a0b2871618
Author: Peter Williams <peter newton cx>
Date: Wed Sep 21 11:56:33 2022 -0400
gio: properly guard use of utimensat()
Closes #2766.
gio/glocalfileinfo.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c
index 6f186957ae..c9e5c8b64c 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]