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

Diff for /src/usr.bin/less/main.c between version 1.22 and 1.23

version 1.22, 2015/11/09 16:34:02 version 1.23, 2015/11/09 16:36:10
Line 89 
Line 89 
         if (s != NULL && *s != '\0')          if (s != NULL && *s != '\0')
                 secure = 1;                  secure = 1;
   
           if (secure) {
                   if (pledge("stdio rpath wpath tty", NULL) == -1)
                           err(1, "pledge");
           } else {
                   if (pledge("stdio rpath wpath cpath fattr proc exec tty", NULL) == -1)
                           err(1, "pledge");
           }
   
         /*          /*
          * Process command line arguments and LESS environment arguments.           * Process command line arguments and LESS environment arguments.
          * Command line arguments override environment arguments.           * Command line arguments override environment arguments.
Line 213 
Line 221 
                 error("WARNING: terminal is not fully functional", NULL_PARG);                  error("WARNING: terminal is not fully functional", NULL_PARG);
         init_mark();          init_mark();
         open_getchr();          open_getchr();
   
           if (secure)
                   if (pledge("stdio rpath tty", NULL) == -1)
                           err(1, "pledge");
   
         raw_mode(1);          raw_mode(1);
         init_signals(1);          init_signals(1);
   

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23