X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fsrc%2Fvlimit.c;h=27c0a777d10a4f73f62e68c4033f98e97935c32d;hb=0d5f1561a88261415e2f3cf4f1de411d11878562;hp=304bb727ebae4a89e4416dcd2dcc7844c616dbe2;hpb=72f43bdcc97c774ea1c294057d99cb51be67950e;p=util-vserver.git diff --git a/util-vserver/src/vlimit.c b/util-vserver/src/vlimit.c index 304bb72..27c0a77 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), @@ -217,7 +217,7 @@ showAll(int ctx) ptr = appendLimit(buf+50, mask.hard&bitmask, limit.hard); *ptr++ = '\n'; - write(1, buf, ptr-buf); + Vwrite(1, buf, ptr-buf); } }