The current code just looks at the sec field, but the difference may
only be evident in the nsec field.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit
14ee7bcbf0bdd6553dc1b78898ae429aae644100)
st->st_nlink = in->nlink;
st->st_uid = in->uid;
st->st_gid = in->gid;
- if (in->ctime.sec() > in->mtime.sec()) {
+ if (in->ctime > in->mtime) {
stat_set_ctime_sec(st, in->ctime.sec());
stat_set_ctime_nsec(st, in->ctime.nsec());
} else {