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

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

version 1.78, 2011/07/14 16:38:39 version 1.79, 2012/03/03 08:34:27
Line 363 
Line 363 
         FILE *src, *dst;          FILE *src, *dst;
         size_t nread, nwritten;          size_t nread, nwritten;
         char *buf;          char *buf;
         int ret;  
   
         ret = -1;  
   
         if (rename(from, to) == 0) {          if (rename(from, to) == 0) {
                 if (chmod(to, perm) == -1) {                  if (chmod(to, perm) == -1) {
                         warn("%s", to);                          warn("%s", to);
Line 416 
Line 413 
                 }                  }
         }          }
   
         ret = 0;  
   
         (void)unlink(from);          (void)unlink(from);
   
 out:  out:
Line 425 
Line 420 
         (void)fclose(dst);          (void)fclose(dst);
         xfree(buf);          xfree(buf);
   
         return (ret);          return (0);
 }  }
   
 /*  /*

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