]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Improve output with no paths and the path command
authorBarry Naujok <bnaujok@sgi.com>
Mon, 23 Jul 2007 06:19:53 +0000 (06:19 +0000)
committerBarry Naujok <bnaujok@sgi.com>
Mon, 23 Jul 2007 06:19:53 +0000 (06:19 +0000)
Merge of master-melb:xfs-cmds:29199a by kenmcd.

  Improve output with no paths and using the path command

quota/path.c

index 608cab5ebd1d7e56bb582c265f96101e82a9521b..6b532de0c80dfb866e180b34862bd6946f7eb01e 100644 (file)
@@ -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();