From: Barry Naujok Date: Tue, 24 Jul 2007 16:07:17 +0000 (+0000) Subject: Improve xfs_io -c handling X-Git-Tag: v2.10.0~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fd5149489e0a51e6553459508cc814679deccbb;p=thirdparty%2Fxfsprogs-dev.git Improve xfs_io -c handling Merge of master-melb:xfs-cmds:29212a by kenmcd. Make sure xfs_io can handle global commands properly --- diff --git a/io/init.c b/io/init.c index 8cb5cfeeb..6539a559d 100644 --- 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;