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

Diff for /src/usr.bin/cvs/remove.c between version 1.8 and 1.9

version 1.8, 2005/04/18 21:02:50 version 1.9, 2005/04/19 15:36:39
Line 32 
Line 32 
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
 #include <libgen.h>  
 #include <unistd.h>  #include <unistd.h>
   
 #include "cvs.h"  #include "cvs.h"
Line 69 
Line 68 
                         force_remove = 1;                          force_remove = 1;
                         break;                          break;
                 case 'l':                  case 'l':
                           cvs_remove.file_flags &= ~CF_RECURSE;
                         break;                          break;
                 case 'R':                  case 'R':
                           cvs_remove.file_flags |= CF_RECURSE;
                         break;                          break;
                 default:                  default:
                         return (CVS_EX_USAGE);                          return (CVS_EX_USAGE);
Line 113 
Line 114 
         cvs_file_getpath(cf, fpath, sizeof(fpath));          cvs_file_getpath(cf, fpath, sizeof(fpath));
   
         if (root->cr_method != CVS_METHOD_LOCAL) {          if (root->cr_method != CVS_METHOD_LOCAL) {
                 ret = cvs_sendentry(root, cf);                  if (cvs_sendentry(root, cf) < 0) {
                           return (CVS_EX_PROTO);
                   }
   
         } else {          } else {
                 /* if -f option is used, physically remove the file */                  /* if -f option is used, physically remove the file */
                 if (force_remove == 1) {                  if (force_remove == 1) {

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9