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

Diff for /src/usr.bin/rcs/rcsprog.c between version 1.34 and 1.35

version 1.34, 2005/10/19 00:30:22 version 1.35, 2005/10/19 11:37:11
Line 183 
Line 183 
 rcs_statfile(char *fname, char *out, size_t len)  rcs_statfile(char *fname, char *out, size_t len)
 {  {
         int l;          int l;
         char *s;  
         char filev[MAXPATHLEN], fpath[MAXPATHLEN];          char filev[MAXPATHLEN], fpath[MAXPATHLEN];
         struct stat st;          struct stat st;
   
Line 206 
Line 205 
         }          }
   
         strlcpy(out, fpath, len);          strlcpy(out, fpath, len);
         if ((verbose == 1) && (strcmp(__progname, "rcsclean"))) {  
                 if (!strcmp(__progname, "co")) {  
                         printf("%s --> ", fpath);  
                         if (pipeout == 1) {  
                                 printf("standard output\n");  
                         } else {  
                                 if ((s = strrchr(filev, ',')) != NULL) {  
                                         *s = '\0';  
                                         printf("%s\n", fname);  
                                 }  
                         }  
                 } else {  
                         printf("RCS file: %s\n", fpath);  
                 }  
         }  
   
         return (0);          return (0);
 }  }
Line 369 
Line 353 
                 if (rcs_statfile(argv[i], fpath, sizeof(fpath)) < 0)                  if (rcs_statfile(argv[i], fpath, sizeof(fpath)) < 0)
                         continue;                          continue;
   
                   if (verbose == 1)
                           printf("RCS file: %s\n", fpath);
                 file = rcs_open(fpath, flags, fmode);                  file = rcs_open(fpath, flags, fmode);
                 if (file == NULL)                  if (file == NULL)
                         continue;                          continue;

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