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

Diff for /src/usr.bin/cvs/Attic/resp.c between version 1.39 and 1.40

version 1.39, 2005/05/24 19:13:52 version 1.40, 2005/05/24 22:00:25
Line 364 
Line 364 
                             CVS_PATH_STATICENTRIES);                              CVS_PATH_STATICENTRIES);
                         return (-1);                          return (-1);
                 } else if (type == CVS_RESP_SETSTATDIR) {                  } else if (type == CVS_RESP_SETSTATDIR) {
                         fd = open(statpath, O_CREAT|O_TRUNC|O_WRONLY, 0400);                          fd = open(statpath, O_CREAT|O_TRUNC|O_WRONLY, 0644);
                         if (fd == -1) {                          if (fd == -1) {
                                 cvs_log(LP_ERRNO,                                  cvs_log(LP_ERRNO,
                                     "failed to set static directory on %s",                                      "failed to set static directory on %s",
Line 430 
Line 430 
   
                 /* add a directory entry to the parent */                  /* add a directory entry to the parent */
                 if ((entf = cvs_ent_open(subdir, O_WRONLY)) != NULL) {                  if ((entf = cvs_ent_open(subdir, O_WRONLY)) != NULL) {
                         snprintf(buf, sizeof(buf), "D/%s////",                          if ((ent = cvs_ent_get(entf, CVS_FILE_NAME(cf))) == NULL) {
                             CVS_FILE_NAME(cf));                                  snprintf(buf, sizeof(buf), "D/%s////",
                         ent = cvs_ent_parse(buf);                                      CVS_FILE_NAME(cf));
                         if (ent == NULL)                                  ent = cvs_ent_parse(buf);
                                 cvs_log(LP_ERR,                                  if (ent == NULL)
                                     "failed to create directory entry");                                          cvs_log(LP_ERR,
                         else                                              "failed to create directory entry");
                                 cvs_ent_add(entf, ent);                                  else
                                           cvs_ent_add(entf, ent);
                           }
                         cvs_ent_close(entf);                          cvs_ent_close(entf);
                 }                  }
         }          }

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40