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

Diff for /src/usr.bin/cvs/client.c between version 1.68 and 1.69

version 1.68, 2007/06/29 12:42:05 version 1.69, 2007/07/03 13:22:42
Line 167 
Line 167 
   
         STRIP_SLASH(data);          STRIP_SLASH(data);
   
         cvs_mkpath(data);          cvs_mkpath(data, NULL);
   
         if ((base = basename(data)) == NULL)          if ((base = basename(data)) == NULL)
                 fatal("client_check_directory: overflow");                  fatal("client_check_directory: overflow");
Line 634 
Line 634 
         char repo[MAXPATHLEN], entry[CVS_ENT_MAXLINELEN];          char repo[MAXPATHLEN], entry[CVS_ENT_MAXLINELEN];
         char timebuf[CVS_TIME_BUFSZ], revbuf[CVS_REV_BUFSZ];          char timebuf[CVS_TIME_BUFSZ], revbuf[CVS_REV_BUFSZ];
         char *en, *mode, *len, *fpath, *rpath, *wdir;          char *en, *mode, *len, *fpath, *rpath, *wdir;
           char sticky[CVS_ENT_MAXLINELEN];
   
         if (data == NULL)          if (data == NULL)
                 fatal("Missing argument for Updated");                  fatal("Missing argument for Updated");
Line 674 
Line 675 
   
         e = cvs_ent_parse(en);          e = cvs_ent_parse(en);
         xfree(en);          xfree(en);
   
           sticky[0] = '\0';
           if (e->ce_tag != NULL)
                   (void)xsnprintf(sticky, sizeof(sticky), "T%s", e->ce_tag);
   
         rcsnum_tostr(e->ce_rev, revbuf, sizeof(revbuf));          rcsnum_tostr(e->ce_rev, revbuf, sizeof(revbuf));
         (void)xsnprintf(entry, CVS_ENT_MAXLINELEN, "/%s/%s/%s/%s/", e->ce_name,          (void)xsnprintf(entry, CVS_ENT_MAXLINELEN, "/%s/%s/%s/%s/%s",
             revbuf, timebuf, e->ce_opts ? e->ce_opts : "");              e->ce_name, revbuf, timebuf,
               e->ce_opts ? e->ce_opts : "", sticky);
   
         cvs_ent_free(e);          cvs_ent_free(e);
         ent = cvs_ent_open(wdir);          ent = cvs_ent_open(wdir);
Line 887 
Line 894 
         xfree(dir);          xfree(dir);
         tag = cvs_remote_input();          tag = cvs_remote_input();
   
           client_check_directory(data);
   
         (void)xsnprintf(tagpath, MAXPATHLEN, "%s/%s", data, CVS_PATH_TAG);          (void)xsnprintf(tagpath, MAXPATHLEN, "%s/%s", data, CVS_PATH_TAG);
   
         if ((fp = fopen(tagpath, "w+")) == NULL) {          if ((fp = fopen(tagpath, "w+")) == NULL) {
Line 916 
Line 925 
         dir = cvs_remote_input();          dir = cvs_remote_input();
         xfree(dir);          xfree(dir);
   
           client_check_directory(data);
   
         (void)xsnprintf(tagpath, MAXPATHLEN, "%s/%s", data, CVS_PATH_TAG);          (void)xsnprintf(tagpath, MAXPATHLEN, "%s/%s", data, CVS_PATH_TAG);
         (void)cvs_unlink(tagpath);          (void)unlink(tagpath);
 }  }
   
   

Legend:
Removed from v.1.68  
changed lines
  Added in v.1.69