Additional debugging. Advertise case sensitivity in vol info.

This commit is contained in:
Michael Jumper 2013-11-04 16:12:40 -08:00
parent 742452b1d4
commit 9d85704f03
3 changed files with 10 additions and 2 deletions

View File

@ -91,7 +91,10 @@ void guac_rdpdr_fs_process_query_attribute_info(guac_rdpdr_device* device, wStre
completion_id, STATUS_SUCCESS, 16 + GUAC_FILESYSTEM_NAME_LENGTH); completion_id, STATUS_SUCCESS, 16 + GUAC_FILESYSTEM_NAME_LENGTH);
Stream_Write_UINT32(output_stream, 12 + GUAC_FILESYSTEM_NAME_LENGTH); Stream_Write_UINT32(output_stream, 12 + GUAC_FILESYSTEM_NAME_LENGTH);
Stream_Write_UINT32(output_stream, FILE_UNICODE_ON_DISK); /* FileSystemAttributes */ Stream_Write_UINT32(output_stream,
FILE_UNICODE_ON_DISK
| FILE_CASE_SENSITIVE_SEARCH
| FILE_CASE_PRESERVED_NAMES); /* FileSystemAttributes */
Stream_Write_UINT32(output_stream, GUAC_RDP_FS_MAX_PATH ); /* MaximumComponentNameLength */ Stream_Write_UINT32(output_stream, GUAC_RDP_FS_MAX_PATH ); /* MaximumComponentNameLength */
Stream_Write_UINT32(output_stream, GUAC_FILESYSTEM_NAME_LENGTH); Stream_Write_UINT32(output_stream, GUAC_FILESYSTEM_NAME_LENGTH);
Stream_Write(output_stream, GUAC_FILESYSTEM_NAME, Stream_Write(output_stream, GUAC_FILESYSTEM_NAME,

View File

@ -273,6 +273,9 @@ int guac_rdp_fs_open(guac_rdp_fs* fs, const char* path,
} }
GUAC_RDP_DEBUG(2, "native open: real_path=\"%s\", flags=0x%x",
real_path, flags);
/* Open file */ /* Open file */
fd = open(real_path, flags, S_IRUSR | S_IWUSR); fd = open(real_path, flags, S_IRUSR | S_IWUSR);
if (fd == -1) { if (fd == -1) {

View File

@ -161,6 +161,8 @@
* Filesystem attributes. * Filesystem attributes.
*/ */
#define FILE_CASE_SENSITIVE_SEARCH 0x00000001
#define FILE_CASE_PRESERVED_NAMES 0x00000002
#define FILE_UNICODE_ON_DISK 0x00000004 #define FILE_UNICODE_ON_DISK 0x00000004
/* /*