GUACAMOLE-474: Ensure RDPDR "Download" folder behaves as a normal folder if downloads are disabled.

This commit is contained in:
Michael Jumper 2020-06-25 14:05:15 -07:00
parent f4ff5f337c
commit 630798503c

View File

@ -166,7 +166,8 @@ void guac_rdpdr_fs_process_set_rename_info(guac_rdp_common_svc* svc,
destination_path);
/* If file moving to \Download folder, start stream, do not move */
if (strncmp(destination_path, "\\Download\\", 10) == 0) {
if (strncmp(destination_path, "\\Download\\", 10) == 0
&& !((guac_rdp_fs*) device->data)->disable_download) {
guac_rdp_fs_file* file;