svn commit: samba r2264 - in branches/SAMBA_3_0/source/nsswitch: .
tpot at samba.org
tpot at samba.org
Thu Sep 9 03:40:27 GMT 2004
Author: tpot
Date: 2004-09-09 03:40:27 +0000 (Thu, 09 Sep 2004)
New Revision: 2264
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_3_0/source/nsswitch&rev=2264&nolog=1
Log:
Fix for #1741. Define a struct nss_groupsbymem (thanks lukeh!) for
HPUX 11 which doesn't have one of its own.
Modified:
branches/SAMBA_3_0/source/nsswitch/winbind_nss_solaris.c
Changeset:
Modified: branches/SAMBA_3_0/source/nsswitch/winbind_nss_solaris.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/winbind_nss_solaris.c 2004-09-09 03:36:05 UTC (rev 2263)
+++ branches/SAMBA_3_0/source/nsswitch/winbind_nss_solaris.c 2004-09-09 03:40:27 UTC (rev 2264)
@@ -49,6 +49,28 @@
#define NSS_ARGS(args) ((nss_XbyY_args_t *)args)
+#ifdef HPUX
+
+/*
+ * HP-UX 11 has no definiton of the nss_groupsbymem structure. This
+ * definition is taken from the nss_ldap project at:
+ * http://www.padl.com/OSS/nss_ldap.html
+ */
+
+struct nss_groupsbymem {
+ const char *username;
+ gid_t *gid_array;
+ int maxgids;
+ int force_slow_way;
+ int (*str2ent)(const char *instr, int instr_len, void *ent,
+ char *buffer, int buflen);
+ nss_status_t (*process_cstr)(const char *instr, int instr_len,
+ struct nss_groupsbymem *);
+ int numgids;
+};
+
+#endif /* HPUX */
+
#define make_pwent_str(dest, src) \
{ \
if((dest = get_static(buffer, buflen, strlen(src)+1)) == NULL) \
More information about the samba-cvs
mailing list