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

Diff for /src/usr.bin/cvs/buf.c between version 1.48 and 1.49

version 1.48, 2006/04/13 19:11:30 version 1.49, 2006/04/14 02:45:35
Line 344 
Line 344 
         int fd;          int fd;
  open:   open:
         if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)) == -1) {          if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)) == -1) {
                 if ((errno == EACCES) && (unlink(path) != -1))                  if (errno == EACCES && unlink(path) != -1)
                         goto open;                          goto open;
                 else                  else
                         fatal("open: `%s': %s", path, strerror(errno));                          fatal("open: `%s': %s", path, strerror(errno));

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49