[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.2 and 1.3

version 1.2, 2004/08/03 05:08:45 version 1.3, 2004/08/06 20:16:52
Line 321 
Line 321 
         int fd;          int fd;
         char rpath[MAXPATHLEN], statpath[MAXPATHLEN];          char rpath[MAXPATHLEN], statpath[MAXPATHLEN];
   
         cvs_getln(root, rpath, sizeof(rpath));          /* remote directory line */
           if (cvs_getln(root, rpath, sizeof(rpath)) < 0)
                   return (-1);
   
         snprintf(statpath, sizeof(statpath), "%s/%s", line,          snprintf(statpath, sizeof(statpath), "%s/%s", line,
             CVS_PATH_STATICENTRIES);              CVS_PATH_STATICENTRIES);
Line 335 
Line 337 
         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, 0400);
                 if (fd == -1) {                  if (fd == -1) {
                         cvs_log(LP_ERRNO, "failed to create %s file",                          cvs_log(LP_ERRNO,
                             CVS_PATH_STATICENTRIES);                              "failed to set static directory on %s", line);
                         return (-1);                          return (-1);
                 }                  }
                 (void)close(fd);                  (void)close(fd);
Line 607 
Line 609 
 static int  static int
 cvs_resp_removed(struct cvsroot *root, int type, char *line)  cvs_resp_removed(struct cvsroot *root, int type, char *line)
 {  {
         char base[MAXPATHLEN], file[MAXNAMLEN];          char base[MAXPATHLEN], *file;
         CVSENTRIES *ef;          CVSENTRIES *ef;
   
         cvs_splitpath(line, base, sizeof(base), file, sizeof(file));          cvs_splitpath(line, base, sizeof(base), &file);
   
         ef = cvs_ent_open(base, O_RDWR);          ef = cvs_ent_open(base, O_RDWR);
         if (ef == NULL)          if (ef == NULL)
                 return (-1);                  return (-1);

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3