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