GUACAMOLE-474: Minor style and debug message tweaks.
This commit is contained in:
parent
b077013c30
commit
ec093d3cea
@ -790,7 +790,8 @@ static int guac_common_ssh_sftp_get_handler(guac_user* user,
|
|||||||
/* If downloads are disabled, log and return. */
|
/* If downloads are disabled, log and return. */
|
||||||
if (filesystem->disable_download) {
|
if (filesystem->disable_download) {
|
||||||
guac_user_log(user, GUAC_LOG_INFO,
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ void guac_rdpdr_fs_process_create(guac_rdp_common_svc* svc,
|
|||||||
if (file != NULL && strcmp(file->absolute_path, "\\") == 0) {
|
if (file != NULL && strcmp(file->absolute_path, "\\") == 0) {
|
||||||
|
|
||||||
/* Only create Download folder if downloads are enabled. */
|
/* 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 =
|
int download_id =
|
||||||
guac_rdp_fs_open((guac_rdp_fs*) device->data, "\\Download",
|
guac_rdp_fs_open((guac_rdp_fs*) device->data, "\\Download",
|
||||||
GENERIC_READ, 0, FILE_OPEN_IF, FILE_DIRECTORY_FILE);
|
GENERIC_READ, 0, FILE_OPEN_IF, FILE_DIRECTORY_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;
|
fs_object->get_handler = guac_rdp_download_get_handler;
|
||||||
|
|
||||||
/* Assign handler only if uploads are not disabled. */
|
/* 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->put_handler = guac_rdp_upload_put_handler;
|
||||||
|
|
||||||
fs_object->data = fs;
|
fs_object->data = fs;
|
||||||
|
Loading…
Reference in New Issue
Block a user