head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.09.02.18.47.29; author maya; state Exp; branches; next ; commitid UFGvuL7aseeCV4UG; desc @@ 1.1 log @net/unfs3: update to 0.11.0 From Bartosz Kuzma in PR pkg/60498 Changes since 0.9.22: unsf3 0.11.0: - fixes to make sure unfs3 works on macOS and Windows again - 32-bit mode can now be enabled at any time, for compatibility with very old NFS clients - starting unfsd now gives a reliable error code if it fails to start - fix incorrect file mode when doing exclusive create - fix to correctly update the time on symlinks, not what they point to - Flex' libfl is no longer needed unsf3 0.10.0 - switched to libtirpc as a base requirement - contrib scripts now require Python 3 instead of Python 2 - fix stale handle when moving files or directories unfs3 0.9.23 - include AFS support for better serving of files from AFS filesystems - use svc_getreq_poll() when available - fix serving files larger than 4GB from Windows - better support for 64-bit systems - fixes for macOS and Windows support - fixes when cross compiling - better support for exporting FAT filesystems @ text @$NetBSD$ Use getsockname for NetBSD --- daemon.c.orig 2025-03-28 08:56:00.000000000 +0000 +++ daemon.c @@@@ -707,7 +707,15 @@@@ static void mountprog_3(struct svc_req * static int _socket_getdomain(int socket) { -#ifdef SO_DOMAIN +#if defined(__NetBSD__) + struct sockaddr name; + socklen_t namelen = sizeof(name); + + if (getsockname(socket, &name, &namelen) == -1) + return -1; + + return name.sa_family; +#elif defined(SO_DOMAIN) int ret, domain; socklen_t len; len = sizeof(domain); @