[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.6 and 1.7

version 1.6, 1996/09/02 18:47:16 version 1.7, 1996/12/07 08:00:45
Line 96 
Line 96 
 int     syslog_pid;             /* read in from /etc/syslog.pid */  int     syslog_pid;             /* read in from /etc/syslog.pid */
 #define MIN_PID         3  #define MIN_PID         3
 #define MAX_PID         65534  #define MAX_PID         65534
 char    hostname[64];           /* hostname */  char    hostname[MAXHOSTNAMELEN]; /* hostname */
 char    *daytime;               /* timenow in human readable form */  char    *daytime;               /* timenow in human readable form */
   
   
Line 376 
Line 376 
         int     owner_uid;          int     owner_uid;
         int     group_gid;          int     group_gid;
 {  {
         char    file1[128], file2[128];          char    file1[MAXPATHLEN], file2[MAXPATHLEN];
         char    zfile1[128], zfile2[128];          char    zfile1[MAXPATHLEN], zfile2[MAXPATHLEN];
         int     fd;          int     fd;
         struct  stat st;          struct  stat st;
         int     days = numdays;          int     days = numdays;
Line 502 
Line 502 
         char    *log;          char    *log;
 {  {
         int     pid;          int     pid;
         char    tmp[128];          char    tmp[MAXPATHLEN];
   
         pid = fork();          pid = fork();
         (void) sprintf(tmp,"%s.0",log);          (void) sprintf(tmp,"%s.0",log);
Line 534 
Line 534 
         char    *file;          char    *file;
 {  {
         struct stat sb;          struct stat sb;
         char tmp[MAXPATHLEN+3];          char tmp[MAXPATHLEN];
   
         (void) strcpy(tmp,file);          (void) strcpy(tmp,file);
         if (stat(strcat(tmp,".0"),&sb) < 0)          if (stat(strcat(tmp,".0"),&sb) < 0)

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7