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

Diff for /src/usr.bin/cvs/root.c between version 1.34 and 1.35

version 1.34, 2007/01/18 22:52:23 version 1.35, 2007/02/07 17:54:42
Line 229 
Line 229 
         if (cvs_rootstr != NULL)          if (cvs_rootstr != NULL)
                 return cvsroot_parse(cvs_rootstr);                  return cvsroot_parse(cvs_rootstr);
   
         if (strlcpy(rootpath, dir, sizeof(rootpath)) >= sizeof(rootpath) ||          (void)xsnprintf(rootpath, MAXPATHLEN, "%s/%s", dir, CVS_PATH_ROOTSPEC);
             strlcat(rootpath, "/", sizeof(rootpath)) >= sizeof(rootpath) ||  
             strlcat(rootpath, CVS_PATH_ROOTSPEC,  
             sizeof(rootpath)) >= sizeof(rootpath)) {  
                 errno = ENAMETOOLONG;  
                 fatal("cvsroot_get: %s: %s", rootpath, strerror(errno));  
         }  
   
         if ((fp = fopen(rootpath, "r")) == NULL) {          if ((fp = fopen(rootpath, "r")) == NULL) {
                 if (errno == ENOENT) {                  if (errno == ENOENT) {

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