about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2011-12-07 01:31:20 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2011-12-07 01:31:20 +0000
commitfe1dc5102a952f281feec14cb3f7d7c3996f62de (patch)
tree20530b75d915d27fa1a0c6e260ba1d399571846b
parent79f2f7fa2ce18552869afa33f1d0d42cf4191b04 (diff)
downloadzsh-fe1dc5102a952f281feec14cb3f7d7c3996f62de.tar.gz
zsh-fe1dc5102a952f281feec14cb3f7d7c3996f62de.tar.xz
zsh-fe1dc5102a952f281feec14cb3f7d7c3996f62de.zip
29952: fix cut'n'paste error in nanosecond timestamp support
-rw-r--r--ChangeLog7
-rw-r--r--Src/glob.c6
2 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 48b89b147..3d183541a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-07  Oliver Kiddle  <okiddle@yahoo.co.uk>
+
+	* 29952: Src/glob.c: fix cut'n'paste error in nanosecond
+	timestamp support
+
 2011-12-06  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* unposted: Config/version.mk: release 4.3.14.
@@ -15657,5 +15662,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5517 $
+* $Revision: 1.5518 $
 *****************************************************
diff --git a/Src/glob.c b/Src/glob.c
index cf4a5a537..96c00dedb 100644
--- a/Src/glob.c
+++ b/Src/glob.c
@@ -422,13 +422,13 @@ insert(char *s, int checked)
 	    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++;