]> xenbits.xensource.com Git - xen.git/commitdiff
tools/xenstored: Wire properly the command line option -M/--path-max
authorJulien Grall <jgrall@amazon.com>
Wed, 21 Apr 2021 13:56:38 +0000 (14:56 +0100)
committerJulien Grall <jgrall@amazon.com>
Sun, 25 Apr 2021 12:50:52 +0000 (13:50 +0100)
The command line option -M/--path-max was meant to be added by
commit 924bf8c793cb "tools/xenstore: rework path length check" but this
wasn't wired through properly.

Fix it by adding the missing "case 'M':".

Fixes: 924bf8c793cb ("tools/xenstore: rework path length check")
Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
tools/xenstore/xenstored_core.c

index 591b28e4552f8f8e24797c3a5374873ed3f4bb12..c638e46221eb9eb658b309ed8d251bd83c04497f 100644 (file)
@@ -2148,6 +2148,7 @@ int main(int argc, char *argv[])
                case 'A':
                        quota_nb_perms_per_node = strtol(optarg, NULL, 10);
                        break;
+               case 'M':
                        quota_max_path_len = strtol(optarg, NULL, 10);
                        quota_max_path_len = min(XENSTORE_REL_PATH_MAX,
                                                 quota_max_path_len);