summaryrefslogtreecommitdiffstats
path: root/libvncserver/rfbserver.c
diff options
context:
space:
mode:
authorsteven_carr <steven_carr>2006-05-15 18:17:31 +0000
committersteven_carr <steven_carr>2006-05-15 18:17:31 +0000
commit1c3af68549c544de065ceedec518449ee8cff49d (patch)
tree0c5638ca7dc34fa2101d7b7e3280b387ee07f1a6 /libvncserver/rfbserver.c
parentccdbe8f3256c3c776a1cc1a0517a38437b9e2c65 (diff)
downloadlibtdevnc-1c3af68549c544de065ceedec518449ee8cff49d.tar.gz
libtdevnc-1c3af68549c544de065ceedec518449ee8cff49d.zip
Default to RFB 3.8, add command line option to specify the RFB version.
Diffstat (limited to 'libvncserver/rfbserver.c')
-rw-r--r--libvncserver/rfbserver.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/libvncserver/rfbserver.c b/libvncserver/rfbserver.c
index ab4e04f..d3d4409 100644
--- a/libvncserver/rfbserver.c
+++ b/libvncserver/rfbserver.c
@@ -1589,8 +1589,20 @@ rfbBool rfbProcessFileTransfer(rfbClientPtr cl, uint8_t contentType, uint8_t con
return rfbSendFileTransferMessage(cl, rfbFileTransferAccess, 0, -1 , 0, ""); /* Deny */
}
}
- rfbLog("rfbProcessFileTransfer() File Transfer Permission DENIED by default!\n");
- return rfbSendFileTransferMessage(cl, rfbFileTransferAccess, 0, -1 , 0, ""); /* DEFAULT: DENY (for security) */
+ else
+ {
+ if (cl->screen->permitFileTransfer)
+ {
+ rfbLog("rfbProcessFileTransfer() File Transfer Permission Granted!\n");
+ return rfbSendFileTransferMessage(cl, rfbFileTransferAccess, 0, 1 , 0, ""); /* Permit */
+ }
+ else
+ {
+ rfbLog("rfbProcessFileTransfer() File Transfer Permission DENIED by default!\n");
+ return rfbSendFileTransferMessage(cl, rfbFileTransferAccess, 0, -1 , 0, ""); /* DEFAULT: DENY (for security) */
+ }
+
+ }
}
break;