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

Diff for /src/usr.bin/cvs/entries.c between version 1.81 and 1.82

version 1.81, 2007/09/22 15:57:24 version 1.82, 2007/09/22 16:01:22
Line 418 
Line 418 
 {  {
         FILE *fp;          FILE *fp;
         char tagpath[MAXPATHLEN];          char tagpath[MAXPATHLEN];
           char sticky[CVS_REV_BUFSZ];
         int i;          int i;
   
         if (cvs_noexec == 1)          if (cvs_noexec == 1)
Line 437 
Line 438 
                 }                  }
   
                 if (tag != NULL) {                  if (tag != NULL) {
                         if (nb != 0)                          if (nb != 0) {
                                 (void)fprintf(fp, "N%s\n", tag);                                  (void)xsnprintf(sticky, sizeof(sticky),
                         else                                      "N%s", tag);
                                 (void)fprintf(fp, "T%s\n", tag);                          } else {
                 } else                                  (void)xsnprintf(sticky, sizeof(sticky),
                         (void)fprintf(fp, "D%s\n", date);                                      "T%s", tag);
                           }
                   } else {
                           (void)xsnprintf(sticky, sizeof(sticky), "D%s", date);
                   }
   
                   if (cvs_server_active == 1)
                           cvs_server_set_sticky(dir, sticky);
   
                   (void)fprintf(fp, "%s\n", sticky);
                 (void)fclose(fp);                  (void)fclose(fp);
         } else {          } else {
                 (void)cvs_unlink(tagpath);                  (void)cvs_unlink(tagpath);

Legend:
Removed from v.1.81  
changed lines
  Added in v.1.82