From dbf76d2ee8da157c2c2970c937bcc0ed9ef08a6f Mon Sep 17 00:00:00 2001 From: Jan Grulich 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 3055223e..8f3649fe 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"); -- 2.39.5