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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/1/19 3:33 AM, Ján Tomko wrote:
Suggest some passwords to the user.

Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
  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.)

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux