diff --git a/common/rfb/VNCSConnectionST.cxx b/common/rfb/VNCSConnectionST.cxx index c8af424..e9964ee 100644 --- a/common/rfb/VNCSConnectionST.cxx +++ b/common/rfb/VNCSConnectionST.cxx @@ -1027,6 +1027,11 @@ bool VNCSConnectionST::getPerms(bool &write, bool &owner) const { bool found = false; const char *colon = strchr(basicauth, ':'); + if (!colon || colon[1]) { + // We're running without basicauth, or with both user:pass on the command line + write = true; + return true; + } if (colon && !colon[1] && user[0]) { struct kasmpasswd_t *set = readkasmpasswd(kasmpasswdpath); unsigned i;