version 1.209, 2015/11/07 17:58:55 |
version 1.210, 2015/12/15 17:38:45 |
Line 420 mandocdb(int argc, char *argv[]) |
|
Line 420 mandocdb(int argc, char *argv[]) |
|
argv += optind; |
argv += optind; |
|
|
#if HAVE_PLEDGE |
#if HAVE_PLEDGE |
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; |
|
} |
} |
} |
#endif |
#endif |
|
|
Line 452 mandocdb(int argc, char *argv[]) |
|
Line 454 mandocdb(int argc, char *argv[]) |
|
* all files specified on the command-line. |
* all files specified on the command-line. |
*/ |
*/ |
#if HAVE_PLEDGE |
#if HAVE_PLEDGE |
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; |
|
} |
} |
} |
#endif |
#endif |
use_all = 1; |
use_all = 1; |