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

Diff for /src/usr.bin/rcs/co.c between version 1.79 and 1.80

version 1.79, 2006/04/19 06:53:41 version 1.80, 2006/04/21 07:06:25
Line 88 
Line 88 
                         break;                          break;
                 case 'p':                  case 'p':
                         rcs_setrevstr(&rev_str, rcs_optarg);                          rcs_setrevstr(&rev_str, rcs_optarg);
                         pipeout = 1;                          flags |= PIPEOUT;
                         break;                          break;
                 case 'q':                  case 'q':
                         rcs_setrevstr(&rev_str, rcs_optarg);                          rcs_setrevstr(&rev_str, rcs_optarg);
Line 160 
Line 160 
   
                 if (!(flags & QUIET))                  if (!(flags & QUIET))
                         printf("%s  -->  %s\n", fpath,                          printf("%s  -->  %s\n", fpath,
                             (pipeout == 1) ? "standard output" : argv[i]);                              (flags & PIPEOUT) ? "standard output" : argv[i]);
   
                 if ((flags & CO_LOCK) && (kflag & RCS_KWEXP_VAL)) {                  if ((flags & CO_LOCK) && (kflag & RCS_KWEXP_VAL)) {
                         cvs_log(LP_ERR, "%s: cannot combine -kv and -l", fpath);                          cvs_log(LP_ERR, "%s: cannot combine -kv and -l", fpath);
Line 428 
Line 428 
                             file->rf_path, lcount);                              file->rf_path, lcount);
         }          }
   
         if (pipeout == 0 && stat(dst, &st) == 0 && !(flags & FORCE)) {          if (!(flags & PIPEOUT) && stat(dst, &st) == 0 && !(flags & FORCE)) {
                 /*                  /*
                  * XXX - Not sure what is "right".  If we go according                   * XXX - Not sure what is "right".  If we go according
                  * to GNU's behavior, an existing file with no writable                   * to GNU's behavior, an existing file with no writable
Line 459 
Line 459 
                 }                  }
         }          }
   
         if (pipeout == 1) {          if (flags & PIPEOUT) {
                 cvs_buf_putc(bp, '\0');                  cvs_buf_putc(bp, '\0');
                 content = cvs_buf_release(bp);                  content = cvs_buf_release(bp);
                 printf("%s", content);                  printf("%s", content);

Legend:
Removed from v.1.79  
changed lines
  Added in v.1.80