pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/net/samba4
Module Name: pkgsrc
Committed By: christos
Date: Tue Jul 21 18:42:25 UTC 2020
Modified Files:
pkgsrc/net/samba4: Makefile distinfo
pkgsrc/net/samba4/patches: patch-nsswitch_winbind__nss__netbsd.c
Log Message:
Fix arguments to getgroupmembership
To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 pkgsrc/net/samba4/Makefile
cvs rdiff -u -r1.49 -r1.50 pkgsrc/net/samba4/distinfo
cvs rdiff -u -r1.1 -r1.2 \
pkgsrc/net/samba4/patches/patch-nsswitch_winbind__nss__netbsd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/net/samba4/Makefile
diff -u pkgsrc/net/samba4/Makefile:1.102 pkgsrc/net/samba4/Makefile:1.103
--- pkgsrc/net/samba4/Makefile:1.102 Mon Jul 6 10:38:06 2020
+++ pkgsrc/net/samba4/Makefile Tue Jul 21 14:42:25 2020
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.102 2020/07/06 14:38:06 adam Exp $
+# $NetBSD: Makefile,v 1.103 2020/07/21 18:42:25 christos Exp $
DISTNAME= samba-4.12.5
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= https://download.samba.org/pub/samba/stable/
Index: pkgsrc/net/samba4/distinfo
diff -u pkgsrc/net/samba4/distinfo:1.49 pkgsrc/net/samba4/distinfo:1.50
--- pkgsrc/net/samba4/distinfo:1.49 Mon Jul 6 10:38:06 2020
+++ pkgsrc/net/samba4/distinfo Tue Jul 21 14:42:25 2020
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.49 2020/07/06 14:38:06 adam Exp $
+$NetBSD: distinfo,v 1.50 2020/07/21 18:42:25 christos Exp $
SHA1 (samba-4.12.5.tar.gz) = 67322997b5588b95c8f9d3fb85f9709deea885cd
RMD160 (samba-4.12.5.tar.gz) = 5dd2eff38edbb1c0872222559fc08b7e57c5d3c7
@@ -24,7 +24,7 @@ SHA1 (patch-lib_util_smb__threads.h) = 9
SHA1 (patch-lib_util_tfork.c) = cd70dcff5f2ce94ffe642e0f029f03ee07dff27d
SHA1 (patch-libcli_dns_wscript__build) = 4103a144aa1bb4662fd7a62270941f1a3d01fe89
SHA1 (patch-nsswitch_stress-nss-libwbclient.c) = bf327282a59aefeeb2d6bf9eccf9b3a832033066
-SHA1 (patch-nsswitch_winbind__nss__netbsd.c) = 71d8acd0aa4c297d75555fba650461c778495caa
+SHA1 (patch-nsswitch_winbind__nss__netbsd.c) = 2773ec9269d1fe0d7ce7ed220f6a7122d187fabe
SHA1 (patch-nsswitch_wscript__build) = e8a6251e031ffa13d6347fade8891f7afd65d3eb
SHA1 (patch-source3_libsmb_pylibsmb.c) = 50c3aaecf345449e02642e387eeac3dd7043e77a
SHA1 (patch-source3_smbd_process.c) = 532d2426b9bd2a215d133bc489741558aa07f849
Index: pkgsrc/net/samba4/patches/patch-nsswitch_winbind__nss__netbsd.c
diff -u pkgsrc/net/samba4/patches/patch-nsswitch_winbind__nss__netbsd.c:1.1 pkgsrc/net/samba4/patches/patch-nsswitch_winbind__nss__netbsd.c:1.2
--- pkgsrc/net/samba4/patches/patch-nsswitch_winbind__nss__netbsd.c:1.1 Wed Mar 20 15:09:10 2019
+++ pkgsrc/net/samba4/patches/patch-nsswitch_winbind__nss__netbsd.c Tue Jul 21 14:42:25 2020
@@ -1,10 +1,19 @@
-$NetBSD: patch-nsswitch_winbind__nss__netbsd.c,v 1.1 2019/03/20 19:09:10 adam Exp $
+$NetBSD: patch-nsswitch_winbind__nss__netbsd.c,v 1.2 2020/07/21 18:42:25 christos Exp $
Syntax error fix.
+Add primary group support
---- nsswitch/winbind_nss_netbsd.c.orig 2019-03-20 11:23:40.911995594 +0000
-+++ nsswitch/winbind_nss_netbsd.c
-@@ -185,7 +185,7 @@ netbsdwinbind_getgroupmembership(void *n
+--- nsswitch/winbind_nss_netbsd.c.orig 2020-01-31 05:25:36.000000000 -0500
++++ nsswitch/winbind_nss_netbsd.c 2020-07-21 10:24:19.651265315 -0400
+@@ -176,6 +176,7 @@
+ {
+ int *result = va_arg(ap, int *);
+ const char *uname = va_arg(ap, const char *);
++ gid_t agroup = va_arg(ap, gid_t);
+ gid_t *groups = va_arg(ap, gid_t *);
+ int maxgrp = va_arg(ap, int);
+ int *groupc = va_arg(ap, int *);
+@@ -185,10 +186,17 @@
};
struct winbindd_response response = {
.length = 0,
@@ -13,3 +22,13 @@ Syntax error fix.
gid_t *wblistv;
int wblistc, i, isdup, dupc;
++ /* add the primary group */
++ if (*groupc < maxgrp)
++ groups[*groupc] = agroup;
++ else
++ *result = -1;
++ (*groupc)++;
++
+ strncpy(request.data.username, uname,
+ sizeof(request.data.username) - 1);
+ i = winbindd_request_response(NULL, WINBINDD_GETGROUPS,
Home |
Main Index |
Thread Index |
Old Index