mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
dc: make use of caph_enter
We already use caph library so this makes sense.
This commit is contained in:
parent
4107f2c44c
commit
31b998816c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335312
@ -137,7 +137,7 @@ main(int argc, char *argv[])
|
||||
|
||||
if (caph_limit_stream(fd, CAPH_READ) < 0 ||
|
||||
caph_limit_stdio() < 0 ||
|
||||
(cap_enter() < 0 && errno != ENOSYS))
|
||||
caph_enter() < 0)
|
||||
err(1, "capsicum");
|
||||
|
||||
procfd(fd, argv[0]);
|
||||
@ -146,7 +146,7 @@ main(int argc, char *argv[])
|
||||
if (preproc_done)
|
||||
return (0);
|
||||
|
||||
if (caph_limit_stdio() < 0 || (cap_enter() < 0 && errno != ENOSYS))
|
||||
if (caph_limit_stdio() < 0 || caph_enter())
|
||||
err(1, "capsicum");
|
||||
src_setstream(&src, stdin);
|
||||
reset_bmachine(&src);
|
||||
|
Loading…
Reference in New Issue
Block a user