[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.12 and 1.13

version 1.12, 1997/07/10 17:37:10 version 1.13, 1998/04/25 18:12:58
Line 485 
Line 485 
         else {          else {
                 fd = creat(log,perm);                  fd = creat(log,perm);
                 if (fd < 0)                  if (fd < 0)
                         err(1, "can't start new log");                          err(1, "can't start \'%s\' log", log);
                 if (fchown(fd, owner_uid, group_gid))                  if (fchown(fd, owner_uid, group_gid))
                         err(1, "can't chmod new log file");                          err(1, "can't chown \'%s\' log file", log);
                 (void) close(fd);                  (void) close(fd);
                 if (!(flags & CE_BINARY))                  if (!(flags & CE_BINARY))
                         if (log_trim(log))      /* Add status message */                          if (log_trim(log))      /* Add status message */
                                 err(1, "can't add status message to log");                                  err(1, "can't add status message to log \'%s\'", log);
         }          }
         if (noaction)          if (noaction)
                 printf("chmod %o %s...",perm,log);                  printf("chmod %o %s...",perm,log);

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13