[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.114 and 1.115

version 1.114, 2010/09/08 15:15:50 version 1.115, 2010/10/20 19:53:53
Line 366 
Line 366 
         /*          /*
          * File inherits permissions from its ,v file           * File inherits permissions from its ,v file
          */           */
         if (file->rf_fd != -1) {          if (file->rf_file != NULL) {
                 if (fstat(file->rf_fd, &st) == -1)                  if (fstat(fileno(file->rf_file), &st) == -1)
                         err(1, "%s", file->rf_path);                          err(1, "%s", file->rf_path);
                 file->rf_mode = mode = st.st_mode;                  file->rf_mode = mode = st.st_mode;
         } else {          } else {

Legend:
Removed from v.1.114  
changed lines
  Added in v.1.115