cat: add CAP_SEEK capability
The copy_file_range might require that. Reviewed by: emaste, theraven, kib, markj Differential Revision: https://reviews.freebsd.org/D41967
This commit is contained in:
parent
3e609fd481
commit
64c6327738
|
@ -155,7 +155,7 @@ init_casper(int argc, char *argv[])
|
|||
err(EXIT_FAILURE, "unable to create Casper");
|
||||
|
||||
fa = fileargs_cinit(casper, argc, argv, O_RDONLY, 0,
|
||||
cap_rights_init(&rights, CAP_READ | CAP_FSTAT | CAP_FCNTL),
|
||||
cap_rights_init(&rights, CAP_READ | CAP_FSTAT | CAP_FCNTL | CAP_SEEK),
|
||||
FA_OPEN | FA_REALPATH);
|
||||
if (fa == NULL)
|
||||
err(EXIT_FAILURE, "unable to create fileargs");
|
||||
|
|
Loading…
Reference in New Issue