Message ID | 1361800972-1978-1-git-send-email-wangshilong1991@gmail.com (mailing list archive) |
---|---|
State | Under Review, archived |
Headers | show |
diff --git a/cmds-qgroup.c b/cmds-qgroup.c index 26f0ab0..06505fa 100644 --- a/cmds-qgroup.c +++ b/cmds-qgroup.c @@ -86,6 +86,11 @@ static int qgroup_create(int create, int argc, char **argv) memset(&args, 0, sizeof(args)); args.create = create; args.qgroupid = parse_qgroupid(argv[1]); + if (!(args.qgroupid >> 48)) { + fprintf(stderr, "ERROR: unable to create/destroy qgroup " + "level 0\n"); + return 30; + } fd = open_file_or_dir(path); if (fd < 0) {