sendfilev64 arg incorrect in samba3.x for solaris

Toomas Soome Toomas.Soome at mls.ee
Fri Oct 1 13:07:03 GMT 2004



ahh, forgot to mention, this bug appears with solaris 10...


Toomas Soome wrote:
> 
> hi!
> 
> if sendfilev64() is explicitly used, it must be used with sendfilevec64 
> arg.
> 
> here is diff:
> 
> --- lib/sendfile.c.orig    K sept 29 14:03:34 2004
> +++ lib/sendfile.c    K sept 29 14:04:44 2004
> @@ -153,7 +153,11 @@
>  {
>      int sfvcnt;
>      size_t total, xferred;
> +#if defined(HAVE_EXPLICIT_LARGEFILE_SUPPORT) && defined(HAVE_OFF64_T) 
> && defined(HAVE_SENDFILEV64)
> +    struct sendfilevec64 vec[2];
> +#else
>      struct sendfilevec vec[2];
> +#endif
>      ssize_t hdr_len = 0;
> 
>      if (header) {
> 
> 
> without this, sendfilev64() will get EFAULT.
> 
> toomas


-- 
toomas
-- 
All power corrupts, but we need electricity.


More information about the samba-technical mailing list