gives me cap_sys_ptrace+eip instead of the cap_sys_ptrace+eip expected (note the leading space), and consequently the script does not proceed as it should.
A possible fix for this is to pipe through cut -d\ -f 2- which won't do anything if there isn't a space, but give the correct field if there is.
On my box (I know, that's how every bug report starts...) running
gives me
cap_sys_ptrace+eip
instead of thecap_sys_ptrace+eip
expected (note the leading space), and consequently the script does not proceed as it should.A possible fix for this is to pipe through
cut -d\ -f 2-
which won't do anything if there isn't a space, but give the correct field if there is.