From cba7be6122383e419da755909d3f6a612fd41918 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Sun, 27 Jun 2004 13:08:27 +0000 Subject: [PATCH] assume '- SYSINFO' when no other options are given git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1601 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/src/vserver-info.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/util-vserver/src/vserver-info.c b/util-vserver/src/vserver-info.c index 9976e99..b64212d 100644 --- a/util-vserver/src/vserver-info.c +++ b/util-vserver/src/vserver-info.c @@ -457,8 +457,9 @@ int main(int argc, char *argv[]) } if (optind+2>argc) { - WRITE_MSG(2, "No vserver or tag give; please try '--help' for more information.\n"); - exit(1); + execQuery("-", tgSYSINFO, 0, 0); + WRITE_MSG(2, "\nAssumed 'SYSINFO' as no other option given; try '--help' for more information.\n"); + exit(0); } vserver = argv[optind]; -- 1.8.1.5