[uClinux-dev] Patch against samba

Greg Ungerer gerg at snapgear.com
Fri Jan 13 02:18:28 EST 2006


Hi Daniel,

Daniel Alomar wrote:
> This patch must be appied to the samba from uClinux-dist to fix one error I
> had.

Applied, thanks.

Regards
Greg



> Index: libsmb/clifile.c
> ===================================================================
> --- libsmb/clifile.c	(revision 8183)
> +++ libsmb/clifile.c	(working copy)
> @@ -262,7 +262,12 @@
>  
>  	sbuf->st_size = IVAL2_TO_SMB_BIG_UINT(rdata,0);     /* total size,
> in bytes */
>  	sbuf->st_blocks = IVAL2_TO_SMB_BIG_UINT(rdata,8);   /* number of
> blocks allocated */
> +#if defined (HAVE_STAT_ST_BLOCKS) && defined(STAT_ST_BLOCKSIZE)
>  	sbuf->st_blocks /= STAT_ST_BLOCKSIZE;
> +#else
> +	/* assume 512 byte blocks */
> +	sbuf->st_blocks /= 512;
> +#endif
>  	sbuf->st_ctime = interpret_long_date(rdata + 16);    /* time of last
> change */
>  	sbuf->st_atime = interpret_long_date(rdata + 24);    /* time of last
> access */
>  	sbuf->st_mtime = interpret_long_date(rdata + 32);    /* time of last
> modification */
> 
> Founded at: http://marc.theaimsgroup.com/?l=samba&m=112066118613642&w=2
> 
> Now I've another error (always another bug...), but the previous stage was
> surpassed. I'll send in another message...
> 
> Regards,
> 
> Daniel Alomar i Claramonte
> Research & Development Electronic Dept.
> SERRA SOLDADURA, S.A.
> WEB Site: http://www.serrasold.com
> Knowledge Site: http://serratron.serrasold.com 
> 
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
> 

-- 
------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     gerg at snapgear.com
SnapGear -- a CyberGuard Company            PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com



More information about the uClinux-dev mailing list