[BACK]Return to edit.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cvs

Diff for /src/usr.bin/cvs/edit.c between version 1.43 and 1.44

version 1.43, 2008/02/04 15:07:33 version 1.44, 2008/02/06 12:42:46
Line 329 
Line 329 
         struct tm *t;          struct tm *t;
         time_t now;          time_t now;
         char bfpath[MAXPATHLEN], timebuf[64], thishost[MAXHOSTNAMELEN];          char bfpath[MAXPATHLEN], timebuf[64], thishost[MAXHOSTNAMELEN];
         char wdir[MAXPATHLEN];          char wdir[MAXPATHLEN], sticky[CVS_ENT_MAXLINELEN];
         RCSNUM *ba_rev;          RCSNUM *ba_rev;
   
         if (cvs_noexec == 1)          if (cvs_noexec == 1)
Line 399 
Line 399 
                 ctime_r(&cf->file_ent->ce_mtime, timebuf);                  ctime_r(&cf->file_ent->ce_mtime, timebuf);
                 timebuf[strcspn(timebuf, "\n")] = '\0';                  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",                  (void)xasprintf(&entry, "/%s/%s/%s/%s/%s",
                     cf->file_name, rbuf, timebuf, cf->file_ent->ce_opts ? : "",                      cf->file_name, rbuf, timebuf, cf->file_ent->ce_opts ? : "",
                     cf->file_ent->ce_tag ? : "");                      sticky);
   
                 cvs_ent_add(entlist, entry);                  cvs_ent_add(entlist, entry);
   

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44