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

Diff for /src/usr.bin/diff/diff.c between version 1.60 and 1.61

version 1.60, 2015/10/05 15:16:23 version 1.61, 2015/10/05 15:42:54
Line 218 
Line 218 
         argv += optind;          argv += optind;
   
         if (lflag == 0) {          if (lflag == 0) {
                 if (tame("stdio wpath rpath cpath tmppath", NULL) == -1)                  if (getenv("TMPDIR")) {
                         err(1, "tame");                          if (tame("stdio rpath wpath cpath", NULL) == -1)
                                   err(1, "tame");
                   } else {
                           if (tame("stdio rpath tmppath", NULL) == -1)
                                   err(1, "tame");
                   }
         }          }
         /*          /*
          * Do sanity checks, fill in stb1 and stb2 and call the appropriate           * Do sanity checks, fill in stb1 and stb2 and call the appropriate

Legend:
Removed from v.1.60  
changed lines
  Added in v.1.61