Bug 214907

Summary: Minstaken command output for setcap
Product: Tools Reporter: meitingli (244349477)
Component: libcapAssignee: Tools/Libcap default virtual assignee (tools_libcap)
Status: RESOLVED DUPLICATE    
Severity: enhancement    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.19.90-2106.3.0.0095 Subsystem:
Regression: No Bisected commit-id:

Description meitingli 2021-11-02 06:39:43 UTC
Hello, 

When I executed below command:
$ setcap -n 0 cap_net_raw,cap_net_admin=eip /usr/bin/ping
$ setcap -n root cap_net_raw,cap_net_admin=eip /usr/bin/ping

The ouput displayed: invalid rootid!=0 of 'xxx', the message was mistaken the line did.'t wrap.

Could you check the parameter value, and set clearly output message?

And more details, please see:
https://gitee.com/src-openeuler/libcap/issues/I4FR7U?from=project-issue
Comment 1 Artem S. Tashkinov 2021-11-02 12:33:19 UTC

*** This bug has been marked as a duplicate of bug 214909 ***