diff --git a/src/common-ssh/sftp.c b/src/common-ssh/sftp.c index e7d55e56..ad091718 100644 --- a/src/common-ssh/sftp.c +++ b/src/common-ssh/sftp.c @@ -790,7 +790,8 @@ static int guac_common_ssh_sftp_get_handler(guac_user* user, /* If downloads are disabled, log and return. */ if (filesystem->disable_download) { guac_user_log(user, GUAC_LOG_INFO, - "File downloads have been disabled."); + "Unable to download file \"%s\", " + "file downloads have been disabled.", fullpath); return 0; } diff --git a/src/protocols/rdp/channels/rdpdr/rdpdr-fs-messages.c b/src/protocols/rdp/channels/rdpdr/rdpdr-fs-messages.c index 7522abc6..afecfcbc 100644 --- a/src/protocols/rdp/channels/rdpdr/rdpdr-fs-messages.c +++ b/src/protocols/rdp/channels/rdpdr/rdpdr-fs-messages.c @@ -100,7 +100,7 @@ void guac_rdpdr_fs_process_create(guac_rdp_common_svc* svc, if (file != NULL && strcmp(file->absolute_path, "\\") == 0) { /* Only create Download folder if downloads are enabled. */ - if(!((guac_rdp_fs*) devices->data)->disable_download) { + if (!((guac_rdp_fs*) devices->data)->disable_download) { int download_id = guac_rdp_fs_open((guac_rdp_fs*) device->data, "\\Download", GENERIC_READ, 0, FILE_OPEN_IF, FILE_DIRECTORY_FILE); diff --git a/src/protocols/rdp/fs.c b/src/protocols/rdp/fs.c index 937b58af..36bb28d3 100644 --- a/src/protocols/rdp/fs.c +++ b/src/protocols/rdp/fs.c @@ -85,7 +85,7 @@ guac_object* guac_rdp_fs_alloc_object(guac_rdp_fs* fs, guac_user* user) { fs_object->get_handler = guac_rdp_download_get_handler; /* Assign handler only if uploads are not disabled. */ - if(!fs->disable_upload) + if (!fs->disable_upload) fs_object->put_handler = guac_rdp_upload_put_handler; fs_object->data = fs;