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

Diff for /src/usr.bin/cvs/rcs.c between version 1.151 and 1.152

version 1.151, 2006/03/27 16:01:18 version 1.152, 2006/03/27 21:56:32
Line 234 
Line 234 
 int rcs_errno = RCS_ERR_NOERR;  int rcs_errno = RCS_ERR_NOERR;
 char *timezone_flag = NULL;  char *timezone_flag = NULL;
   
 static int      rcs_write(RCSFILE *);  
 static int      rcs_parse_init(RCSFILE *);  static int      rcs_parse_init(RCSFILE *);
 static int      rcs_parse_admin(RCSFILE *);  static int      rcs_parse_admin(RCSFILE *);
 static int      rcs_parse_delta(RCSFILE *);  static int      rcs_parse_delta(RCSFILE *);
Line 280 
Line 279 
         struct rcs_delta *rdp;          struct rcs_delta *rdp;
         struct rcs_lock *lkr;          struct rcs_lock *lkr;
   
         fmode = 0;          fmode = S_IRUSR|S_IRGRP|S_IROTH;
         flags &= 0xffff;        /* ditch any internal flags */          flags &= 0xffff;        /* ditch any internal flags */
   
         if (((ret = stat(path, &st)) == -1) && (errno == ENOENT)) {          if (((ret = stat(path, &st)) == -1) && (errno == ENOENT)) {
Line 402 
Line 401 
  * path is in <rf_path>.   * path is in <rf_path>.
  * Returns 0 on success, or -1 on failure.   * Returns 0 on success, or -1 on failure.
  */   */
 static int  int
 rcs_write(RCSFILE *rfp)  rcs_write(RCSFILE *rfp)
 {  {
         FILE *fp;          FILE *fp;
Line 602 
Line 601 
                 }                  }
         }          }
   
         if ((chmod(rfp->rf_path, S_IRUSR|S_IRGRP|S_IROTH) == -1)) {          if ((chmod(rfp->rf_path, rfp->rf_mode) == -1)) {
                 cvs_log(LP_ERRNO, "failed to chmod `%s'",                  cvs_log(LP_ERRNO, "failed to chmod `%s'",
                     rfp->rf_path);                      rfp->rf_path);
                 return (-1);                  return (-1);
Line 2830 
Line 2829 
         }          }
         return (bp);          return (bp);
 }  }
   
   
 #if !defined(RCSPROG)  #if !defined(RCSPROG)
   

Legend:
Removed from v.1.151  
changed lines
  Added in v.1.152