[libvirt] [PATCH 14/14] virsh-completer: introduce virshPasswordCompleter

Laine Stump laine at laine.org
Mon Apr 1 14:09:57 UTC 2019


On 4/1/19 3:33 AM, Ján Tomko wrote:
> Suggest some passwords to the user.
>
> Signed-off-by: Ján Tomko <jtomko at redhat.com>
> ---
>   tools/virsh-completer.c | 58 +++++++++++++++++++++++++++++++++++++++++
>   tools/virsh-completer.h |  4 +++
>   tools/virsh-domain.c    |  1 +
>   3 files changed, 63 insertions(+)
>
> diff --git a/tools/virsh-completer.c b/tools/virsh-completer.c
> index 5985f09272..0687670d37 100644
> --- a/tools/virsh-completer.c
> +++ b/tools/virsh-completer.c
> @@ -32,6 +32,7 @@
>   #include "virutil.h"
>   #include "viralloc.h"
>   #include "virmacaddr.h"
> +#include "virrandom.h"
>   #include "virstring.h"
>   #include "virxml.h"
>   
> @@ -936,3 +937,60 @@ virshDomainDeviceAliasCompleter(vshControl *ctl,
>       VIR_STEAL_PTR(ret, tmp);
>       return ret;
>   }
> +
> +
> +const char *builtin_passwords[] = {
> +    "*******", /* ******* */
> +    "********", /* Keď nevieš, tak nefušuj */
> +    "******",
> +};


I hope that git push doesn't perform the same redaction as git 
send-email did (or perhaps the server end of git is equipped to reverse 
it?) (This "feature" of git send-email makes it hard for us to judge the 
usefulness of the list of recommendations BTW.)




More information about the libvir-list mailing list