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

Diff for /src/usr.bin/unvis/unvis.c between version 1.13 and 1.14

version 1.13, 2015/10/06 22:58:24 version 1.14, 2015/10/09 01:37:09
Line 43 
Line 43 
         FILE *fp;          FILE *fp;
         int ch;          int ch;
   
         if (tame("stdio rpath", NULL) == -1)          if (pledge("stdio rpath", NULL) == -1)
                 err(1, "tame");                  err(1, "pledge");
   
         while ((ch = getopt(argc, argv, "")) != -1)          while ((ch = getopt(argc, argv, "")) != -1)
                 switch(ch) {                  switch(ch) {
Line 66 
Line 66 
                         argv++;                          argv++;
                 }                  }
         else {          else {
                 if (tame("stdio", NULL) == -1)                  if (pledge("stdio", NULL) == -1)
                         err(1, "tame");                          err(1, "pledge");
   
                 process(stdin, "<stdin>");                  process(stdin, "<stdin>");
         }          }

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14