]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Improve xfs_io -c handling
authorBarry Naujok <bnaujok@sgi.com>
Tue, 24 Jul 2007 16:07:17 +0000 (16:07 +0000)
committerBarry Naujok <bnaujok@sgi.com>
Tue, 24 Jul 2007 16:07:17 +0000 (16:07 +0000)
Merge of master-melb:xfs-cmds:29212a by kenmcd.

  Make sure xfs_io can handle global commands properly

io/init.c

index 8cb5cfeebb607d38422ecc1c89264dad934889bf..6539a559d1323a5915a3f2f11beffa16955970c4 100644 (file)
--- a/io/init.c
+++ b/io/init.c
@@ -91,6 +91,9 @@ static int
 init_check_command(
        const cmdinfo_t *ct)
 {
+       if (ct->flags & CMD_FLAG_GLOBAL)
+               return 1;
+
        if (!file && !(ct->flags & CMD_NOFILE_OK)) {
                fprintf(stderr, _("no files are open, try 'help open'\n"));
                return 0;