Displaying 3 results from an estimated 3 matches for "2f6bc5c".
2019 Nov 26
0
[PATCH common v2 3/3] options: Allow default --key parameters.
...key *key = &ks->keys[i];
- if (STRNEQ (key->device, device))
+ if (STRNEQ (key->device, "") &&
+ STRNEQ (key->device, device))
continue;
switch (key->type) {
diff --git a/options/options.h b/options/options.h
index 510e8a8..2f6bc5c 100644
--- a/options/options.h
+++ b/options/options.h
@@ -105,7 +105,10 @@ struct mp {
/* A key in the key store. */
struct key_store_key {
/* The device this key refers to. There may be multiple matching
- * devices in the list.
+ * devices in the list. It is never NULL but it may also...
2019 Nov 26
6
[PATCH options v2 0/3] options: Allow multiple and default --key parameters.
v1:
https://www.redhat.com/archives/libguestfs/2019-November/msg00036.html
2019 Nov 26
1
Re: [PATCH common v2 3/3] options: Allow default --key parameters.
...- if (STRNEQ (key->device, device))
> + if (STRNEQ (key->device, "") &&
> + STRNEQ (key->device, device))
> continue;
>
> switch (key->type) {
> diff --git a/options/options.h b/options/options.h
> index 510e8a8..2f6bc5c 100644
> --- a/options/options.h
> +++ b/options/options.h
> @@ -105,7 +105,10 @@ struct mp {
> /* A key in the key store. */
> struct key_store_key {
> /* The device this key refers to. There may be multiple matching
> - * devices in the list.
> + * devices in the...