mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 23:16:14 +01:00
glocalfileinfo: Fix atime/mtime mix due to bad copy/paste
This commit is contained in:
parent
16ce10eb3c
commit
5a032f32ea
@ -2650,7 +2650,7 @@ set_mtime_atime (char *filename,
|
|||||||
{
|
{
|
||||||
if (lazy_stat (filename, &statbuf, &got_stat) == 0)
|
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)
|
#if defined (HAVE_STRUCT_STAT_ST_ATIMENSEC)
|
||||||
times[0].tv_usec = statbuf.st_atimensec / 1000;
|
times[0].tv_usec = statbuf.st_atimensec / 1000;
|
||||||
#elif defined (HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC)
|
#elif defined (HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC)
|
||||||
|
Loading…
Reference in New Issue
Block a user