summaryrefslogtreecommitdiff
path: root/gio/glocalfileinfo.c
diff options
context:
space:
mode:
authorKarol Lewandowski <k.lewandowsk@samsung.com>2024-01-25 15:08:59 +0100
committerKarol Lewandowski <k.lewandowsk@samsung.com>2024-01-25 15:08:59 +0100
commit9b927cf3cac4cf0f7843e0a3f9e9647a13f0c54a (patch)
treee026f97ceb8431d03d2f4e0340d11ddb4b19ad1f /gio/glocalfileinfo.c
parent73d39c11a0c085416cc55df47f9c3fdaa8149c6b (diff)
downloadglib-upstream.tar.gz
glib-upstream.tar.bz2
glib-upstream.zip
Imported Upstream version 2.78.4upstream
Diffstat (limited to 'gio/glocalfileinfo.c')
-rw-r--r--gio/glocalfileinfo.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c
index 7c2524e8d..4f51427f5 100644
--- a/gio/glocalfileinfo.c
+++ b/gio/glocalfileinfo.c
@@ -2832,6 +2832,16 @@ set_mtime_atime (char *filename,
}
}
+ if (atime_usec_value)
+ {
+ guint32 val_usec = 0;
+
+ if (!get_uint32 (atime_usec_value, &val_usec, error))
+ return FALSE;
+
+ times_n[0].tv_nsec = val_usec * 1000;
+ }
+
if (atime_nsec_value)
{
guint32 val_nsec = 0;
@@ -2861,6 +2871,16 @@ set_mtime_atime (char *filename,
}
}
+ if (mtime_usec_value)
+ {
+ guint32 val_usec = 0;
+
+ if (!get_uint32 (mtime_usec_value, &val_usec, error))
+ return FALSE;
+
+ times_n[1].tv_nsec = val_usec * 1000;
+ }
+
if (mtime_nsec_value)
{
guint32 val_nsec = 0;