Skip to content

Commit

Permalink
lsvfs(1): User caph_enter_casper() in lieu
Browse files Browse the repository at this point in the history
Signed-off-by: Faraz Vahedi <[email protected]>
  • Loading branch information
kfv committed Nov 1, 2024
1 parent 82ea3af commit f5d9be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr.bin/lsvfs/lsvfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ main(int argc, char **argv)
if (cap_sysctl_limit(limit) < 0)
err(EXIT_FAILURE, "unable to set limits");

if (cap_enter() < 0)
if (caph_enter_casper() != 0)
err(EXIT_FAILURE, "failed to enter capability mode");

printf(HDRFMT, "Filesystem", "Num", "Refs", "Flags");
Expand Down

0 comments on commit f5d9be5

Please sign in to comment.