]> source.dussan.org Git - tigervnc.git/commitdiff
Let user know that a view-only password is not used 1260/head
authorJan Grulich <jgrulich@redhat.com>
Tue, 25 May 2021 12:14:33 +0000 (14:14 +0200)
committerJan Grulich <jgrulich@redhat.com>
Tue, 25 May 2021 12:14:33 +0000 (14:14 +0200)
unix/vncpasswd/vncpasswd.cxx

index 3055223efd8a933d380ce9a3a07333b4774626df..8f3649fe99e9edfbd9d534ba7aac6cdc11831bf3 100644 (file)
@@ -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");