fileargs_init() sets errno on failure.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2019-11-06 01:42:30 +00:00
parent 432fc36da1
commit 7ef518c05a
3 changed files with 3 additions and 3 deletions

View File

@ -135,7 +135,7 @@ main(int argc, char **argv)
fa = fileargs_init(argc, argv, flags, 0, &rights, FA_OPEN);
if (fa == NULL)
errx(1, "unable to init casper");
err(1, "unable to init casper");
caph_cache_catpages();
if (caph_limit_stdio() < 0 || caph_enter_casper() < 0)

View File

@ -117,7 +117,7 @@ main(int argc, char *argv[])
fa = fileargs_init(argc, argv, O_RDONLY, 0,
cap_rights_init(&rights, CAP_READ, CAP_FSTAT, CAP_FCNTL), FA_OPEN);
if (fa == NULL)
errx(1, "unable to init casper");
err(1, "unable to init casper");
caph_cache_catpages();
if (caph_limit_stdio() < 0 || caph_enter_casper() < 0)

View File

@ -169,7 +169,7 @@ main(int argc, char *argv[])
fa = fileargs_init(argc, argv, O_RDONLY, 0, &rights, FA_OPEN);
if (fa == NULL)
errx(1, "unable to init casper");
err(1, "unable to init casper");
caph_cache_catpages();
if (caph_enter_casper() < 0)