From: Barry Naujok Date: Mon, 23 Jul 2007 06:19:53 +0000 (+0000) Subject: Improve output with no paths and the path command X-Git-Tag: v2.10.0~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f285712b0e1e52e50256e0272dd1683b33946879;p=thirdparty%2Fxfsprogs-dev.git Improve output with no paths and the path command Merge of master-melb:xfs-cmds:29199a by kenmcd. Improve output with no paths and using the path command --- diff --git a/quota/path.c b/quota/path.c index 608cab5eb..6b532de0c 100644 --- a/quota/path.c +++ b/quota/path.c @@ -99,6 +99,11 @@ path_f( { int i; + if (fs_count == 0) { + printf(_("No paths are available\n")); + return 0; + } + if (argc <= 1) return pathlist_f();