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

Diff for /src/usr.bin/newsyslog/newsyslog.c between version 1.110 and 1.111

version 1.110, 2019/01/25 00:19:26 version 1.111, 2019/06/28 05:35:34
Line 850 
Line 850 
         if (noaction)  {          if (noaction)  {
                 printf("\tmktemp %s\n", file2);                  printf("\tmktemp %s\n", file2);
         } else {          } else {
                 if ((fd = mkstemp(file2)) < 0)                  if ((fd = mkstemp(file2)) == -1)
                         err(1, "can't start '%s' log", file2);                          err(1, "can't start '%s' log", file2);
                 if (fchmod(fd, ent->permissions))                  if (fchmod(fd, ent->permissions))
                         err(1, "can't chmod '%s' log file", file2);                          err(1, "can't chmod '%s' log file", file2);

Legend:
Removed from v.1.110  
changed lines
  Added in v.1.111