[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.157 and 1.158

version 1.157, 2015/10/13 22:57:49 version 1.158, 2015/10/16 13:37:44
Line 333 
Line 333 
         size_t            j, sz;          size_t            j, sz;
         int               ch, i;          int               ch, i;
   
         if (pledge("stdio rpath wpath cpath fattr proc exec", NULL) == -1) {          if (pledge("stdio rpath wpath cpath fattr flock proc exec", NULL) == -1) {
                 perror("pledge");                  perror("pledge");
                 return (int)MANDOCLEVEL_SYSERR;                  return (int)MANDOCLEVEL_SYSERR;
         }          }
Line 441 
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",                          if (!nodb && pledge("stdio rpath wpath cpath fattr flock",
                             NULL) == -1) {                              NULL) == -1) {
                                 perror("pledge");                                  perror("pledge");
                                 exitcode = (int)MANDOCLEVEL_SYSERR;                                  exitcode = (int)MANDOCLEVEL_SYSERR;

Legend:
Removed from v.1.157  
changed lines
  Added in v.1.158