Page MenuHomeFreeBSD

D43171.diff
No OneTemporary

D43171.diff

diff --git a/net/samba416/Makefile b/net/samba416/Makefile
--- a/net/samba416/Makefile
+++ b/net/samba416/Makefile
@@ -1,6 +1,6 @@
PORTNAME= ${SAMBA4_BASENAME}416
PORTVERSION= ${SAMBA4_VERSION}
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES?= net
MASTER_SITES= SAMBA/samba/stable SAMBA/samba/rc
DISTNAME= ${SAMBA4_DISTNAME}
diff --git a/net/samba416/files/patch-source3_modules_vfs__cap.c b/net/samba416/files/patch-source3_modules_vfs__cap.c
new file mode 100644
--- /dev/null
+++ b/net/samba416/files/patch-source3_modules_vfs__cap.c
@@ -0,0 +1,14 @@
+--- source3/modules/vfs_cap.c.orig 2022-01-24 10:26:59 UTC
++++ source3/modules/vfs_cap.c
+@@ -112,7 +112,10 @@ static struct dirent *cap_readdir(vfs_handle_struct *h
+ return NULL;
+ }
+ talloc_set_name_const(newdirent, "struct dirent");
+- memcpy(newdirent, result, sizeof(struct dirent));
++ /* See FreeBSD bug #275597 for an explanation of this patch. */
++ /* memcpy(newdirent, result, sizeof(struct dirent)); */
++ memcpy(newdirent, result, result->d_reclen);
++ /*******************************************************************/
+ memcpy(&newdirent->d_name, newname, newnamelen);
+ return newdirent;
+ }

File Metadata

Mime Type
text/plain
Expires
Wed, Jul 15, 5:36 PM (11 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35108578
Default Alt Text
D43171.diff (1 KB)

Event Timeline