X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fsrc%2Freducecap.c;h=01a9872dc2ba5e1fd61955bbeed150840609c27b;hb=a917f24ef7b003dcef54a3db2644cf9cb4bc2db2;hp=9999f61579f04e94ebcc1a495d922fe519983fd6;hpb=19b505f485927357115dcd74d4576f5c7f4dd995;p=util-vserver.git diff --git a/util-vserver/src/reducecap.c b/util-vserver/src/reducecap.c index 9999f61..01a9872 100644 --- a/util-vserver/src/reducecap.c +++ b/util-vserver/src/reducecap.c @@ -247,18 +247,17 @@ int main (int argc, char *argv[]) switch (c) { case CMD_HELP : showHelp(1, argv[0], 0); case CMD_VERSION : showVersion(); - case CMD_SECURE : remove = vc_get_securecaps(); break; + case CMD_SECURE : remove = vc_get_insecurecaps(); break; case CMD_SHOW : do_show = true; break; case CMD_PID : pid = atoi(optarg); break; case CMD_CAP : remove = getCap(optarg); break; case CMD_FLAG : { - char const *err_ptr; - size_t err_len; + struct vc_err_listparser err; - flags = vc_textlist2flag(optarg, 0, &err_ptr, &err_len); - if (err_ptr!=0) { + flags = vc_list2flag_compat(optarg, 0, &err); + if (err.ptr!=0) { WRITE_MSG(2, "Unknown flag '"); - write(2, err_ptr, err_len); + write(2, err.ptr, err.len); WRITE_MSG(2, "'\n"); exit(wrapper_exit_code); }