X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fsrc%2Fvlimit.c;h=9400ef2e5442e862fc20e3aaf4b55e1da065d304;hb=5736e97486dbc7182b2e832f4367812741ccbd86;hp=ae6bffa04e30496a0d79053518868f03f9590ae2;hpb=4575009631fcf792c7c76c62c7a9db802169be77;p=util-vserver.git diff --git a/util-vserver/src/vlimit.c b/util-vserver/src/vlimit.c index ae6bffa..9400ef2 100644 --- a/util-vserver/src/vlimit.c +++ b/util-vserver/src/vlimit.c @@ -69,7 +69,7 @@ CMDLINE_OPTIONS[] = { { "help", no_argument, 0, CMD_HELP }, { "version", no_argument, 0, CMD_VERSION }, { "all", no_argument, 0, 'a' }, - { "xid", no_argument, 0, CMD_XID }, + { "xid", required_argument, 0, CMD_XID }, { "dir", required_argument, 0, CMD_DIR }, { "missingok", no_argument, 0, CMD_MISSINGOK }, NUMLIM( 0), NUMLIM( 1), NUMLIM( 2), NUMLIM( 3), @@ -367,13 +367,13 @@ int main (int argc, char *argv[]) else switch (c) { case CMD_HELP : showHelp(1, argv[0], 0); case CMD_VERSION : showVersion(); - case CMD_XID : - case 'c' : ctx = atoi(optarg); break; - case 'a' : show_all = true; break; - case 'n' : do_resolve = false; break; + case 'a' : show_all = true; break; + case 'n' : do_resolve = false; break; + case CMD_DIR : dir = optarg; break; + case CMD_MISSINGOK: missing_ok = true; break; + case CMD_XID : /*@fallthrough@*/ + case 'c' : ctx = Evc_xidopt2xid(optarg,true); break; case 'd' : fmt_func = utilvserver_fmt_uint64; break; - case CMD_DIR : dir = optarg; break; - case CMD_MISSINGOK: missing_ok = true; break; case 'M' : case 'S' : case 'H' :