hfs_fs_pre-0.7-7 now available

David Lorin Goldstein hfs-interest@ccs.neu.edu
Thu, 22 Aug 1996 10:39:14 -0400 (EDT)


On Thu, 22 Aug 1996, Paul H. Hargrove wrote:

> There remains one reported bug, and that is that the sizes of the
> resource fork under AppleDouble and Netatalk are stored in the wrong
> byte-order, so Netatalk clients see small files as being absolutely
> huge.  The (untested) fix is the following patch:

This patch seems to have fixed the problem with file sizes. Just thought
folks should know it isn't completely untested anymore...:)

Thank you Paul!

David
> 
> --- file_nat.c.orig	Thu Aug 22 00:04:23 1996
> +++ file_nat.c	Thu Aug 22 00:05:24 1996
> @@ -181,7 +181,8 @@
>  	}
>  	if (what & HFS_META_RFORK) {
>  		if (entry->type == HFS_CDR_FIL) {
> -			meta->descr[0].length = entry->u.file.rsrc_fork.lsize; 
> +			meta->descr[0].length =
> +					swap32(entry->u.file.rsrc_fork.lsize); 
>  		}
>  	}
>  	if (what & HFS_META_FLAGS) {
> 

__________________           David Lorin Goldstein         _________________
dlg@where.com     \_______________________________________/ WHERE.COM,Inc.
leaf@where.com     \ Director of Information Technology  /    WebService
root@where.com     /_____________________________________\    Consulting  
__________________/                                       \_________________