[BACK]Return to mandocdb.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/mandocdb.c between version 1.217 and 1.219

version 1.217, 2016/07/09 15:24:19 version 1.219, 2016/07/15 18:03:45
Line 34 
Line 34 
 #include "compat_fts.h"  #include "compat_fts.h"
 #endif  #endif
 #include <limits.h>  #include <limits.h>
   #if HAVE_SANDBOX_INIT
   #include <sandbox.h>
   #endif
 #include <stddef.h>  #include <stddef.h>
 #include <stdio.h>  #include <stdio.h>
 #include <stdint.h>  #include <stdint.h>
Line 136  struct mdoc_handler {
Line 139  struct mdoc_handler {
         uint64_t         mask;  /* set unless handler returns 0 */          uint64_t         mask;  /* set unless handler returns 0 */
 };  };
   
   
   int              mandocdb(int, char *[]);
   
 static  void     dbclose(int);  static  void     dbclose(int);
 static  void     dbadd(struct mpage *);  static  void     dbadd(struct mpage *);
 static  void     dbadd_mlink(const struct mlink *mlink);  static  void     dbadd_mlink(const struct mlink *mlink);
Line 341  mandocdb(int argc, char *argv[])
Line 347  mandocdb(int argc, char *argv[])
 #if HAVE_PLEDGE  #if HAVE_PLEDGE
         if (pledge("stdio rpath wpath cpath fattr flock proc exec", NULL) == -1) {          if (pledge("stdio rpath wpath cpath fattr flock proc exec", NULL) == -1) {
                 warn("pledge");                  warn("pledge");
                   return (int)MANDOCLEVEL_SYSERR;
           }
   #endif
   
   #if HAVE_SANDBOX_INIT
           if (sandbox_init(kSBXProfileNoInternet, SANDBOX_NAMED, NULL) == -1) {
                   warnx("sandbox_init");
                 return (int)MANDOCLEVEL_SYSERR;                  return (int)MANDOCLEVEL_SYSERR;
         }          }
 #endif  #endif

Legend:
Removed from v.1.217  
changed lines
  Added in v.1.219

CVSweb