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

Diff for /src/usr.bin/mandoc/mandocdb.c between version 1.162 and 1.163

version 1.162, 2015/11/07 17:58:52 version 1.163, 2015/12/15 17:36:19
Line 409 
Line 409 
         argc -= optind;          argc -= optind;
         argv += optind;          argv += optind;
   
         if (nodb && pledge("stdio rpath", NULL) == -1) {          if (nodb) {
                 perror("pledge");                  if (pledge("stdio rpath", NULL) == -1) {
                 return (int)MANDOCLEVEL_SYSERR;                          perror("pledge");
                           return (int)MANDOCLEVEL_SYSERR;
                   }
         }          }
   
         if (OP_CONFFILE == op && argc > 0) {          if (OP_CONFFILE == op && argc > 0) {
Line 439 
Line 441 
                          * The existing database is usable.  Process                           * The existing database is usable.  Process
                          * all files specified on the command-line.                           * all files specified on the command-line.
                          */                           */
                         if (!nodb && pledge("stdio rpath wpath cpath fattr flock",                          if (!nodb) {
                             NULL) == -1) {                                  if (pledge("stdio rpath wpath cpath fattr flock", NULL) == -1) {
                                 perror("pledge");                                          perror("pledge");
                                 exitcode = (int)MANDOCLEVEL_SYSERR;                                          exitcode = (int)MANDOCLEVEL_SYSERR;
                                 goto out;                                          goto out;
                                   }
                         }                          }
                         use_all = 1;                          use_all = 1;
                         for (i = 0; i < argc; i++)                          for (i = 0; i < argc; i++)

Legend:
Removed from v.1.162  
changed lines
  Added in v.1.163