fileargs_init() sets errno on failure.
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
e4c3b9879f
commit
884af5d98f
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user