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

Diff for /src/usr.bin/ktrace/ktrace.c between version 1.2 and 1.3

version 1.2, 1996/06/26 05:34:46 version 1.3, 1996/09/21 08:11:03
Line 71 
Line 71 
         enum { NOTSET, CLEAR, CLEARALL } clear;          enum { NOTSET, CLEAR, CLEARALL } clear;
         int append, ch, fd, inherit, ops, pid, pidset, trpoints;          int append, ch, fd, inherit, ops, pid, pidset, trpoints;
         char *tracefile;          char *tracefile;
           mode_t omask;
   
         clear = NOTSET;          clear = NOTSET;
         append = ops = pidset = inherit = 0;          append = ops = pidset = inherit = 0;
Line 138 
Line 139 
                 exit(0);                  exit(0);
         }          }
   
           omask = umask(S_IRWXG|S_IRWXO);
         if ((fd = open(tracefile, O_CREAT | O_WRONLY | (append ? 0 : O_TRUNC),          if ((fd = open(tracefile, O_CREAT | O_WRONLY | (append ? 0 : O_TRUNC),
             DEFFILEMODE)) < 0)              DEFFILEMODE)) < 0)
                 err(1, tracefile);                  err(1, tracefile);
           (void)umask(omask);
         (void)close(fd);          (void)close(fd);
   
         if (*argv) {          if (*argv) {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3