sendfilev64 arg incorrect in samba3.x for solaris
Toomas Soome
Toomas.Soome at mls.ee
Wed Sep 29 11:15:01 GMT 2004
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
More information about the samba-technical
mailing list