Blame SOURCES/tigervnc-let-user-know-about-not-using-view-only-password.patch

809922
From dbf76d2ee8da157c2c2970c937bcc0ed9ef08a6f Mon Sep 17 00:00:00 2001
809922
From: Jan Grulich <jgrulich@redhat.com>
809922
Date: Tue, 25 May 2021 14:14:33 +0200
809922
Subject: [PATCH] Let user know that a view-only password is not used
809922
809922
---
809922
 unix/vncpasswd/vncpasswd.cxx | 2 ++
809922
 1 file changed, 2 insertions(+)
809922
acbd46
diff --git a/unix/vncpasswd/vncpasswd.cxx b/unix/vncpasswd/vncpasswd.cxx
809922
index 3055223ef..8f3649fe9 100644
acbd46
--- a/unix/vncpasswd/vncpasswd.cxx
acbd46
+++ b/unix/vncpasswd/vncpasswd.cxx
809922
@@ -160,6 +160,8 @@ int main(int argc, char** argv)
acbd46
     char yesno[3];
acbd46
     if (fgets(yesno, 3, stdin) != NULL && (yesno[0] == 'y' || yesno[0] == 'Y')) {
acbd46
       obfuscatedReadOnly = readpassword();
acbd46
+    } else {
acbd46
+      fprintf(stderr, "A view-only password is not used\n");
acbd46
     }
acbd46
acbd46
     FILE* fp = fopen(fname,"w");