=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/entries.c,v retrieving revision 1.88 retrieving revision 1.89 diff -c -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 **** ! /* $OpenBSD: entries.c,v 1.88 2008/02/04 18:23:58 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink * --- 1,4 ---- ! /* $OpenBSD: entries.c,v 1.89 2008/02/09 17:01:43 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink * *************** *** 427,432 **** --- 427,433 ---- 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,445 **** if (i < 0 || i >= MAXPATHLEN) return; ! if ((tag != NULL) || (date != NULL)) { if ((fp = fopen(tagpath, "w+")) == NULL) { if (errno != ENOENT) { cvs_log(LP_NOTICE, "failed to open `%s' : %s", --- 440,446 ---- if (i < 0 || i >= MAXPATHLEN) return; ! 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,464 **** "T%s", tag); } } else { ! (void)xsnprintf(sticky, sizeof(sticky), "D%s", date); } if (cvs_server_active == 1) --- 459,467 ---- "T%s", tag); } } else { ! datetm = gmtime(&cvs_specified_date); ! strftime(sticky, sizeof(sticky), "D%Y.%m.%d.%H.%M.%S", ! datetm); } if (cvs_server_active == 1)