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

Diff for /src/usr.bin/file/Attic/sandbox.c between version 1.2 and 1.3

version 1.2, 2015/04/29 06:37:14 version 1.3, 2015/04/30 14:16:49
Line 79 
Line 79 
         struct passwd   *pw;          struct passwd   *pw;
   
         /*          /*
          * If we don't set streams to line buffered explicitly, stdio uses           * If we don't set stream buffering explicitly, stdio calls isatty()
          * isatty() which means ioctl() - too nasty to let through the systrace           * which means ioctl() - too nasty to let through the systrace policy.
          * policy.  
          */           */
         setvbuf(stdout, NULL, _IOLBF, 0);          setvbuf(stdout, NULL, _IOLBF, 0);
         setvbuf(stderr, NULL, _IOLBF, 0);          setvbuf(stderr, NULL, _IONBF, 0);
   
         if (geteuid() == 0) {          if (geteuid() == 0) {
                 pw = getpwnam(user);                  pw = getpwnam(user);

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