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

Diff for /src/usr.bin/cvs/add.c between version 1.35 and 1.36

version 1.35, 2005/12/10 20:27:45 version 1.36, 2005/12/30 02:03:28
Line 110 
Line 110 
                 strlcpy(kbuf, "-k", sizeof(kbuf));                  strlcpy(kbuf, "-k", sizeof(kbuf));
                 strlcat(kbuf, koptstr, sizeof(kbuf));                  strlcat(kbuf, koptstr, sizeof(kbuf));
   
                 if (root->cr_method != CVS_METHOD_LOCAL) {                  if (root->cr_method != CVS_METHOD_LOCAL)
                         if (cvs_sendarg(root, kbuf, 0) < 0)                          cvs_sendarg(root, kbuf, 0);
                                 return (CVS_EX_PROTO);  
                 }  
         }          }
   
         return (0);          return (0);
Line 122 
Line 120 
 static int  static int
 cvs_add_remote(CVSFILE *cf, void *arg)  cvs_add_remote(CVSFILE *cf, void *arg)
 {  {
         int ret;  
         struct cvsroot *root;          struct cvsroot *root;
   
         ret = 0;  
         root = CVS_DIR_ROOT(cf);          root = CVS_DIR_ROOT(cf);
   
         if (cf->cf_type == DT_DIR) {          if (cf->cf_type == DT_DIR) {
                 ret = cvs_senddir(root, cf);                  cvs_senddir(root, cf);
                 if (ret == -1)                  return (0);
                         ret = CVS_EX_PROTO;  
                 return (ret);  
         }          }
   
         if (cf->cf_cvstat == CVS_FST_UNKNOWN)          if (cf->cf_cvstat == CVS_FST_UNKNOWN)
                 ret = cvs_sendreq(root, CVS_REQ_ISMODIFIED,                  cvs_sendreq(root, CVS_REQ_ISMODIFIED, cf->cf_name);
                     cf->cf_name);  
   
         if (ret == -1)          return (0);
                 ret = CVS_EX_PROTO;  
   
         return (ret);  
 }  }
   
 static int  static int

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36