mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
Uhm yah, not sure who committed this into trunk... Anyway, I think this
is what was intended... git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44145 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2558,9 +2558,7 @@ int main(int argc, char *argv[])
|
||||
cap = cap_from_text("cap_net_admin=ep");
|
||||
if (cap_set_proc(cap)) {
|
||||
ast_log(LOG_WARNING, "Unable to install capabilities.\n");
|
||||
break;
|
||||
}
|
||||
if (cap_free(cap)) {
|
||||
} else if (cap_free(cap)) {
|
||||
ast_log(LOG_WARNING, "Unable to drop capabilities.\n");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user