[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.18 and 1.19

version 1.18, 1999/03/08 03:16:34 version 1.19, 1999/06/08 15:42:54
Line 193 
Line 193 
                 (void)fclose(f);                  (void)fclose(f);
         }          }
   
         if (verbose) {          if (verbose)
                 if (ent->flags & CE_COMPACT)                  printf("%s <%d%s>: ", ent->log, ent->numlogs,
                         printf("%s <%dZ>: ",ent->log,ent->numlogs);                          (ent->flags & CE_COMPACT) ? "Z" : "");
                 else  
                         printf("%s <%d>: ",ent->log,ent->numlogs);  
         }  
         size = sizefile(ent->log);          size = sizefile(ent->log);
         modtime = age_old_log(ent->log);          modtime = age_old_log(ent->log);
         if (size < 0) {          if (size < 0) {
Line 216 
Line 213 
                                         || (modtime < 0)))) {                                          || (modtime < 0)))) {
                         if (verbose)                          if (verbose)
                                 printf("--> trimming log....\n");                                  printf("--> trimming log....\n");
                         if (noaction && !verbose) {                          if (noaction && !verbose)
                                 if (ent->flags & CE_COMPACT)                                  printf("%s <%d%s>: ", ent->log, ent->numlogs,
                                         printf("%s <%dZ>: trimming",                                          (ent->flags & CE_COMPACT) ? "Z" : "");
                                                ent->log,ent->numlogs);  
                                 else  
                                         printf("%s <%d>: trimming",  
                                                ent->log,ent->numlogs);  
                         }  
                         dotrim(ent->log, ent->numlogs, ent->flags,                          dotrim(ent->log, ent->numlogs, ent->flags,
                                ent->permissions, ent->uid, ent->gid, pid);                                 ent->permissions, ent->uid, ent->gid, pid);
                 } else {                  } else {

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19