zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: fix my mistake in nanosecond filestamp support
@ 2011-12-07  1:15 Oliver Kiddle
  0 siblings, 0 replies; only message in thread
From: Oliver Kiddle @ 2011-12-07  1:15 UTC (permalink / raw)
  To: Zsh workers

Seems I made a mistake several years ago when putting together the patch
for nano-second timestamps. Trouble is this is tricky to actually test.

Oliver

Index: Src/glob.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/glob.c,v
retrieving revision 1.77
diff -u -r1.77 glob.c
--- Src/glob.c	19 Jun 2011 16:26:11 -0000	1.77
+++ Src/glob.c	7 Dec 2011 01:10:55 -0000
@@ -422,13 +422,13 @@
 	    matchptr->_ctime = buf2.st_ctime;
 	    matchptr->_links = buf2.st_nlink;
 #ifdef GET_ST_ATIME_NSEC
-	    matchptr->_ansec = GET_ST_ATIME_NSEC(buf);
+	    matchptr->_ansec = GET_ST_ATIME_NSEC(buf2);
 #endif
 #ifdef GET_ST_MTIME_NSEC
-	    matchptr->_mnsec = GET_ST_MTIME_NSEC(buf);
+	    matchptr->_mnsec = GET_ST_MTIME_NSEC(buf2);
 #endif
 #ifdef GET_ST_CTIME_NSEC
-	    matchptr->_cnsec = GET_ST_CTIME_NSEC(buf);
+	    matchptr->_cnsec = GET_ST_CTIME_NSEC(buf2);
 #endif
 	}
 	matchptr++;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-12-07  1:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-07  1:15 PATCH: fix my mistake in nanosecond filestamp support Oliver Kiddle

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).