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

Diff for /src/usr.bin/indent/indent.c between version 1.29 and 1.30

version 1.29, 2015/10/09 01:37:07 version 1.30, 2015/11/11 01:12:09
Line 1184 
Line 1184 
             errc(1, ENAMETOOLONG, "%s.BAK", p);              errc(1, ENAMETOOLONG, "%s.BAK", p);
   
     /* copy in_name to backup file */      /* copy in_name to backup file */
     bakchn = creat(bakfile, 0600);      bakchn = open(bakfile, O_CREAT | O_TRUNC | O_WRONLY, 0600);
     if (bakchn < 0)      if (bakchn < 0)
         err(1, "%s", bakfile);          err(1, "%s", bakfile);
     while ((n = read(fileno(input), buff, sizeof buff)) > 0)      while ((n = read(fileno(input), buff, sizeof buff)) > 0)

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30