[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#630251: patch for proposed updates / rdesktop sometimes fails to transfer files from win2k8



Package: release.debian.org

Hi,

some programms make rdesktop to fail to keep up the directory
forwarding to an win 2k8-server. Please see
http://sourceforge.net/tracker/?func=detail&aid=2812158&group_id=24366&atid=381349
for the bug, the fix is as follows:

--- rdesktop-1.6.0.orig/disk.c	2009-06-19 09:06:27.000000000 -0400
+++ rdesktop-1.6.0/disk.c	2009-06-25 09:40:44.000000000 -0400
@@ -1096,10 +1101,24 @@
 			rdp_out_unistr(out, fsinfo->type, 2 * strlen(fsinfo->type) - 2);
 			break;
 
+		/* JMD 20090623: Needed for Windows 2008 support
+		   http://msdn.microsoft.com/en-us/library/cc232104(PROT.13).aspx
+		   IRP Query Volume Information class: 0x07 */
+		case FileFsFullSizeInformation:
+			printf("Called FileFsFullSizeInformation\n");
+			out_uint32_le(out, stat_fs.f_blocks);	/* TotalAllocationUnits */
+			out_uint32_le(out, 0);	
+			out_uint32_le(out, stat_fs.f_bavail);	/* CallerAvailableAllocationUnits */
+			out_uint32_le(out, 0);	
+			out_uint32_le(out, stat_fs.f_bfree);	/* ActualAvailableAllocationUnits */
+			out_uint32_le(out, 0);	
+			out_uint32_le(out, stat_fs.f_bsize / 0x200);	/* SectorsPerAllocationUnit */
+			out_uint32_le(out, 0x200);	/* Bytes per sector */
+			break;
+
 		case FileFsLabelInformation:
 		case FileFsDeviceInformation:
 		case FileFsControlInformation:
-		case FileFsFullSizeInformation:
 		case FileFsObjectIdInformation:
 		case FileFsMaximumInformation:
 

Is this correct? If so, I'd prepare and upload an appropriate new
version to stable (oldstable has the same bug, and I'm happy to fix it
there too, but actually the current stable version just has bug fixes
compared to oldstable, so that the new stable version should be
backported to olstable in that case).


Andi



Reply to: