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

Diff for /src/usr.bin/cvs/server.c between version 1.82 and 1.83

version 1.82, 2008/02/03 18:18:44 version 1.83, 2008/02/09 20:04:00
Line 317 
Line 317 
 cvs_server_directory(char *data)  cvs_server_directory(char *data)
 {  {
         CVSENTRIES *entlist;          CVSENTRIES *entlist;
         char *dir, *repo, *parent, entry[CVS_ENT_MAXLINELEN], *dirn, *p;          char *dir, *repo, *parent, *entry, *dirn, *p;
   
         if (current_cvsroot == NULL)          if (current_cvsroot == NULL)
                 fatal("No Root specified for Directory");                  fatal("No Root specified for Directory");
Line 351 
Line 351 
                 fatal("cvs_server_directory: %s", strerror(errno));                  fatal("cvs_server_directory: %s", strerror(errno));
   
         if (strcmp(parent, ".")) {          if (strcmp(parent, ".")) {
                 entlist = cvs_ent_open(parent);                  entry = xmalloc(CVS_ENT_MAXLINELEN);
                 (void)xsnprintf(entry, CVS_ENT_MAXLINELEN, "D/%s////", dirn);                  cvs_ent_line_str(dirn, NULL, NULL, NULL, NULL, 1, 0,
                       entry, CVS_ENT_MAXLINELEN);
   
                   entlist = cvs_ent_open(parent);
                 cvs_ent_add(entlist, entry);                  cvs_ent_add(entlist, entry);
                 cvs_ent_close(entlist, ENT_SYNC);                  cvs_ent_close(entlist, ENT_SYNC);
                   xfree(entry);
         }          }
   
         if (server_currentdir != NULL)          if (server_currentdir != NULL)

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