=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/entries.c,v retrieving revision 1.88 retrieving revision 1.89 diff -u -r1.88 -r1.89 --- src/usr.bin/cvs/entries.c 2008/02/04 18:23:58 1.88 +++ src/usr.bin/cvs/entries.c 2008/02/09 17:01:43 1.89 @@ -1,4 +1,4 @@ -/* $OpenBSD: entries.c,v 1.88 2008/02/04 18:23:58 tobias Exp $ */ +/* $OpenBSD: entries.c,v 1.89 2008/02/09 17:01:43 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink * @@ -427,6 +427,7 @@ RCSNUM *rev; char tagpath[MAXPATHLEN]; char sticky[CVS_REV_BUFSZ]; + struct tm *datetm; int i; cvs_log(LP_TRACE, "cvs_write_tagfile(%s, %s, %s)", dir, @@ -439,7 +440,7 @@ if (i < 0 || i >= MAXPATHLEN) return; - if ((tag != NULL) || (date != NULL)) { + if (tag != NULL || cvs_specified_date != 0) { if ((fp = fopen(tagpath, "w+")) == NULL) { if (errno != ENOENT) { cvs_log(LP_NOTICE, "failed to open `%s' : %s", @@ -458,7 +459,9 @@ "T%s", tag); } } else { - (void)xsnprintf(sticky, sizeof(sticky), "D%s", date); + datetm = gmtime(&cvs_specified_date); + strftime(sticky, sizeof(sticky), "D%Y.%m.%d.%H.%M.%S", + datetm); } if (cvs_server_active == 1)