=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/stat/stat.c,v retrieving revision 1.24 retrieving revision 1.25 diff -c -r1.24 -r1.25 *** src/usr.bin/stat/stat.c 2023/08/06 19:33:54 1.24 --- src/usr.bin/stat/stat.c 2023/08/06 19:36:13 1.25 *************** *** 1,4 **** ! /* $OpenBSD: stat.c,v 1.24 2023/08/06 19:33:54 guenther Exp $ */ /* $NetBSD: stat.c,v 1.19 2004/06/20 22:20:16 jmc Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: stat.c,v 1.25 2023/08/06 19:36:13 guenther Exp $ */ /* $NetBSD: stat.c,v 1.19 2004/06/20 22:20:16 jmc Exp $ */ /* *************** *** 611,637 **** case SHOW_st_atime: gottime = 1; secs = st->st_atime; ! nsecs = st->st_atimensec; /* FALLTHROUGH */ case SHOW_st_mtime: if (!gottime) { gottime = 1; secs = st->st_mtime; ! nsecs = st->st_mtimensec; } /* FALLTHROUGH */ case SHOW_st_ctime: if (!gottime) { gottime = 1; secs = st->st_ctime; ! nsecs = st->st_ctimensec; } /* FALLTHROUGH */ case SHOW_st_btime: if (!gottime) { gottime = 1; ! secs = st->__st_birthtimespec.tv_sec; ! nsecs = st->__st_birthtimespec.tv_nsec; } small = (sizeof(secs) == 4); data = secs; --- 611,637 ---- case SHOW_st_atime: gottime = 1; secs = st->st_atime; ! nsecs = st->st_atim.tv_nsec; /* FALLTHROUGH */ case SHOW_st_mtime: if (!gottime) { gottime = 1; secs = st->st_mtime; ! nsecs = st->st_mtim.tv_nsec; } /* FALLTHROUGH */ case SHOW_st_ctime: if (!gottime) { gottime = 1; secs = st->st_ctime; ! nsecs = st->st_ctim.tv_nsec; } /* FALLTHROUGH */ case SHOW_st_btime: if (!gottime) { gottime = 1; ! secs = st->__st_birthtime; ! nsecs = st->__st_birthtim.tv_nsec; } small = (sizeof(secs) == 4); data = secs;