xl: fix off-by-one mistake in block-attach handler

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
Jan Beulich committed 2010-09-21 17:39:03 +01:00
1 parent 88ac547769
commit 7225bfbd19
1 file changed
+1 -1
+1 -1
View File
@@ -4282,7 +4282,7 @@ int main_blockattach(int argc, char **argv)
}
disk.virtpath = argv[optind+2];
disk.unpluggable = 1;
disk.readwrite = ((argc-optind <= 2) || (argv[optind+3][0] == 'w'));
disk.readwrite = ((argc-optind <= 3) || (argv[optind+3][0] == 'w'));
if (domain_qualifier_to_domid(argv[optind], &fe_domid, 0) < 0) {
fprintf(stderr, "%s is an invalid domain identifier\n", argv[optind]);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.