diff options
Diffstat (limited to 'gio/glocalfileinfo.c')
-rw-r--r-- | gio/glocalfileinfo.c | 20 |
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; |