=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/edit.c,v retrieving revision 1.43 retrieving revision 1.44 diff -c -r1.43 -r1.44 *** src/usr.bin/cvs/edit.c 2008/02/04 15:07:33 1.43 --- src/usr.bin/cvs/edit.c 2008/02/06 12:42:46 1.44 *************** *** 1,4 **** ! /* $OpenBSD: edit.c,v 1.43 2008/02/04 15:07:33 tobias Exp $ */ /* * Copyright (c) 2006, 2007 Xavier Santolaria * --- 1,4 ---- ! /* $OpenBSD: edit.c,v 1.44 2008/02/06 12:42:46 tobias Exp $ */ /* * Copyright (c) 2006, 2007 Xavier Santolaria * *************** *** 329,335 **** struct tm *t; time_t now; char bfpath[MAXPATHLEN], timebuf[64], thishost[MAXHOSTNAMELEN]; ! char wdir[MAXPATHLEN]; RCSNUM *ba_rev; if (cvs_noexec == 1) --- 329,335 ---- struct tm *t; time_t now; char bfpath[MAXPATHLEN], timebuf[64], thishost[MAXHOSTNAMELEN]; ! char wdir[MAXPATHLEN], sticky[CVS_ENT_MAXLINELEN]; RCSNUM *ba_rev; if (cvs_noexec == 1) *************** *** 399,407 **** ctime_r(&cf->file_ent->ce_mtime, timebuf); timebuf[strcspn(timebuf, "\n")] = '\0'; (void)xasprintf(&entry, "/%s/%s/%s/%s/%s", cf->file_name, rbuf, timebuf, cf->file_ent->ce_opts ? : "", ! cf->file_ent->ce_tag ? : ""); cvs_ent_add(entlist, entry); --- 399,412 ---- ctime_r(&cf->file_ent->ce_mtime, timebuf); timebuf[strcspn(timebuf, "\n")] = '\0'; + sticky[0] = '\0'; + if (cf->file_ent->ce_tag != NULL) + (void)xsnprintf(sticky, sizeof(sticky), "T%s", + cf->file_ent->ce_tag); + (void)xasprintf(&entry, "/%s/%s/%s/%s/%s", cf->file_name, rbuf, timebuf, cf->file_ent->ce_opts ? : "", ! sticky); cvs_ent_add(entlist, entry);