diff options
author | Jan Grulich <jgrulich@redhat.com> | 2021-05-25 14:14:33 +0200 |
---|---|---|
committer | Jan Grulich <jgrulich@redhat.com> | 2021-05-25 14:14:33 +0200 |
commit | dbf76d2ee8da157c2c2970c937bcc0ed9ef08a6f (patch) | |
tree | f4a089390b3f88a8e8f4efee58fd07e8b0b6819c /unix/vncpasswd/vncpasswd.cxx | |
parent | 2a042c913ccc2ebf114386d33eb1aa4484d7aca4 (diff) | |
download | tigervnc-dbf76d2ee8da157c2c2970c937bcc0ed9ef08a6f.tar.gz tigervnc-dbf76d2ee8da157c2c2970c937bcc0ed9ef08a6f.zip |
Let user know that a view-only password is not used
Diffstat (limited to 'unix/vncpasswd/vncpasswd.cxx')
-rw-r--r-- | unix/vncpasswd/vncpasswd.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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"); |