mirror of
https://git.freebsd.org/ports.git
synced 2025-05-17 17:43:11 -04:00
This is an initial attempt to add Samba to the FreeBSD after major rewrite of the VFS code in the upstream. Most of the port development is now carried in: https://gitlab.com/samba-freebsd Due to the way how new Samba VFS code is written there is a constrain that Samba 4.14+ can run only on FreeBSD 13.1+, as it requires support of the `nodup` option for the `fdesc` file system, as well as it's presence in the system in general. https://gitlab.com/samba-freebsd/-/wikis/The-New-VFS I'd like to thank CyberSecure Pty Ltd. company for their supoort of the port development and Andrew Walker from iXsystems Inc. for the patches he created and made available for the Samba4 on TrueNAS. PR: 263874
14 lines
434 B
C
14 lines
434 B
C
--- source3/lib/util.c.orig 2019-05-07 08:38:21 UTC
|
|
+++ source3/lib/util.c
|
|
@@ -1916,7 +1916,10 @@ bool any_nt_status_not_ok(NTSTATUS err1,
|
|
|
|
int timeval_to_msec(struct timeval t)
|
|
{
|
|
- return t.tv_sec * 1000 + (t.tv_usec+999) / 1000;
|
|
+ unsigned long result;
|
|
+
|
|
+ result = t.tv_sec * 1000 + (t.tv_usec+999) / 1000;
|
|
+ return result > INT_MAX ? INT_MAX : result;
|
|
}
|
|
|
|
/*******************************************************************
|