GUACAMOLE-474: Minor style and debug message tweaks.

This commit is contained in:
Nick Couchman 2020-05-29 07:39:39 -04:00
parent b077013c30
commit ec093d3cea
3 changed files with 4 additions and 3 deletions

View File

@ -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;
}

View File

@ -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);

View File

@ -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;