[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.60 and 1.61

version 1.60, 2006/03/15 20:00:50 version 1.61, 2006/03/16 04:01:46
Line 340 
Line 340 
         }          }
   
         if ((pipeout == 0) && (stat(dst, &st) == 0) && !(flags & FORCE)) {          if ((pipeout == 0) && (stat(dst, &st) == 0) && !(flags & FORCE)) {
                 if (st.st_mode & S_IWUSR) {                  if (verbose == 0) {
                         if (verbose == 0) {                          cvs_log(LP_ERR,
                                 cvs_log(LP_ERR,                              "writable %s exists; checkout aborted",
                                     "writable %s exists; checkout aborted",                              dst);
                                     dst);                          return (-1);
                                 return (-1);                  }
                         }  
   
                         printf("writable %s exists%s; ", dst,                  if (st.st_mode & S_IWUSR)
                             (getuid() == st.st_uid) ? "" :                          printf("writable ");
                             ", and you do not own it");                  printf("%s exists%s; ", dst,
                         printf("remove it? [ny](n): ");                      (getuid() == st.st_uid) ? "" :
                         /* default is n */                      ", and you do not own it");
                         if (cvs_yesno() == -1) {                  printf("remove it? [ny](n): ");
                                 cvs_log(LP_ERR, "checkout aborted");                  /* default is n */
                                 return (-1);                  if (cvs_yesno() == -1) {
                         }                          cvs_log(LP_ERR, "checkout aborted");
                           return (-1);
                 }                  }
         }          }
   

Legend:
Removed from v.1.60  
changed lines
  Added in v.1.61