Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: fix my mistake in nanosecond filestamp support
- X-seq: zsh-workers 29952
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: PATCH: fix my mistake in nanosecond filestamp support
- Date: Wed, 07 Dec 2011 02:15:13 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1323220515; bh=M3T8aQNQ0QxevblCN4l8kY/tMgENp9j4MF7uUYWlfcw=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:From:To:Subject:Date:Message-ID; b=Ab7F6vbkW3O6j91tO59UFhBnwOz3Fyr2itvaaWU0nldqKlVsVJEVr4DUyO65rrqqo+Fke8YeLapBsGGJVHBO6RXdtlY8pLEXkeEx5NxZmAyUuUzS0X1t3m9a7gKL0CeViPbUoyMhVUMGbW0B6ql6M6GOImWxecSK6cIq78FRuC8=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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++;
Messages sorted by:
Reverse Date,
Date,
Thread,
Author