CVS: rdesktop disk.c,1.63,1.64
Matt Chapman <[email protected]> Fri, 15 Feb 2008 16:15:45 -0800
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/rdesktop In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv10943 Modified Files: disk.c Log Message: Fix from Paul Whitaker: It is not safe to assume that free space available at the top of the tree is indicative of free space anywhere in the tree, because you may wish to redirect a mount point hierarchy. Index: disk.c =================================================================== RCS file: /cvsroot/rdesktop/rdesktop/disk.c,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** disk.c 5 Jan 2008 05:43:02 -0000 1.63 --- disk.c 16 Feb 2008 00:15:43 -0000 1.64 *************** *** 854,858 **** /* prevents start of writing if not enough space left on device */ ! if (STATFS_FN(g_rdpdr_device[pfinfo->device_id].local_path, &stat_fs) == 0) if (stat_fs.f_bfree * stat_fs.f_bsize < length) return RD_STATUS_DISK_FULL; --- 854,858 ---- /* prevents start of writing if not enough space left on device */ ! if (STATFS_FN(pfinfo->path, &stat_fs) == 0) if (stat_fs.f_bfree * stat_fs.f_bsize < length) return RD_STATUS_DISK_FULL; ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/