From: Jan Grulich Date: Tue, 25 May 2021 12:14:33 +0000 (+0200) Subject: Let user know that a view-only password is not used X-Git-Tag: v1.11.90~43^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dbf76d2ee8da157c2c2970c937bcc0ed9ef08a6f;p=tigervnc.git Let user know that a view-only password is not used --- 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");