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

Diff for /src/usr.bin/signify/signify.c between version 1.101 and 1.102

version 1.101, 2015/10/08 16:45:50 version 1.102, 2015/10/09 01:37:08
Line 663 
Line 663 
                 VERIFY                  VERIFY
         } verb = NONE;          } verb = NONE;
   
         if (tame("stdio rpath wpath cpath tty", NULL) == -1)          if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
                 err(1, "tame");                  err(1, "pledge");
   
         rounds = 42;          rounds = 42;
   
Line 730 
Line 730 
                 /* keep it all */                  /* keep it all */
                 break;                  break;
         case CHECK:          case CHECK:
                 if (tame("stdio rpath", NULL) == -1)                  if (pledge("stdio rpath", NULL) == -1)
                         err(1, "tame");                          err(1, "pledge");
                 break;                  break;
         case VERIFY:          case VERIFY:
                 if (embedded && (!msgfile || strcmp(msgfile, "-") != 0)) {                  if (embedded && (!msgfile || strcmp(msgfile, "-") != 0)) {
                         if (tame("stdio rpath wpath cpath", NULL) == -1)                          if (pledge("stdio rpath wpath cpath", NULL) == -1)
                                 err(1, "tame");                                  err(1, "pledge");
                 } else {                  } else {
                         if (tame("stdio rpath", NULL) == -1)                          if (pledge("stdio rpath", NULL) == -1)
                                 err(1, "tame");                                  err(1, "pledge");
                 }                  }
                 break;                  break;
         default:          default:
                 if (tame("stdio", NULL) == -1)                  if (pledge("stdio", NULL) == -1)
                         err(1, "tame");                          err(1, "pledge");
                 break;                  break;
         }          }
   

Legend:
Removed from v.1.101  
changed lines
  Added in v.1.102