From: Dave Chinner Date: Fri, 9 Nov 2012 07:02:58 +0000 (+0000) Subject: xfs_quota: fix report command parsing X-Git-Tag: v3.1.9-rc2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=19473a2ac1ac00f47e68c81b7b5d30b549961765;p=thirdparty%2Fxfsprogs-dev.git xfs_quota: fix report command parsing The report command line needs to be parsed as a whole not as individual elements - report_f() is set up to do this correctly. When treated as non-global command line, the report function is called once for each command line arg, resulting in reports being issued multiple times. Set the command to be a global command so that it is only called once. Signed-off-by: Dave Chinner Reviewed-by: Mark Tinguely Signed-off-by: Mark Tinguely --- diff --git a/quota/report.c b/quota/report.c index a1e165b0e..70894a2c5 100644 --- a/quota/report.c +++ b/quota/report.c @@ -653,6 +653,7 @@ report_init(void) report_cmd.cfunc = report_f; report_cmd.argmin = 0; report_cmd.argmax = -1; + report_cmd.flags = CMD_FLAG_GLOBAL; report_cmd.args = _("[-bir] [-gpu] [-ahnt] [-f file]"); report_cmd.oneline = _("report filesystem quota information"); report_cmd.help = report_help;