[glib/glib-2-70: 3/18] glocalfileinfo: Fix atime/mtime mix due to bad copy/paste
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-70: 3/18] glocalfileinfo: Fix atime/mtime mix due to bad copy/paste
- Date: Tue, 19 Oct 2021 06:21:25 +0000 (UTC)
commit 55dea0fd8d091f0934808da52b5071426fbbc44f
Author: Egor Bychin <e bychin drweb com>
Date: Mon Oct 11 13:56:43 2021 +0300
glocalfileinfo: Fix atime/mtime mix due to bad copy/paste
gio/glocalfileinfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c
index 3867ca684..d3b327a19 100644
--- a/gio/glocalfileinfo.c
+++ b/gio/glocalfileinfo.c
@@ -2650,7 +2650,7 @@ set_mtime_atime (char *filename,
{
if (lazy_stat (filename, &statbuf, &got_stat) == 0)
{
- times[0].tv_sec = statbuf.st_mtime;
+ times[0].tv_sec = statbuf.st_atime;
#if defined (HAVE_STRUCT_STAT_ST_ATIMENSEC)
times[0].tv_usec = statbuf.st_atimensec / 1000;
#elif defined (HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]