summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbind_nss_aix.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-04-04 04:28:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:09 -0500
commit06ec19e2fb0e5e761c2ea7460bb71bc0cb5e66da (patch)
tree62bab0a876684fbf5a3860892c3e26612416f40f /source3/nsswitch/winbind_nss_aix.c
parentf5d3d29f7239754e3e42f12c934b1051989d737b (diff)
downloadsamba-06ec19e2fb0e5e761c2ea7460bb71bc0cb5e66da.tar.gz
samba-06ec19e2fb0e5e761c2ea7460bb71bc0cb5e66da.tar.bz2
samba-06ec19e2fb0e5e761c2ea7460bb71bc0cb5e66da.zip
r22069: BUG 4447: Fix compile failure on AIX 5.2 (patch from William Jojo <jojowil@hvcc.edu>)
(This used to be commit c1cb6d059b2a8539bc8a05ea4467d136bbb2ff38)
Diffstat (limited to 'source3/nsswitch/winbind_nss_aix.c')
-rw-r--r--source3/nsswitch/winbind_nss_aix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/nsswitch/winbind_nss_aix.c b/source3/nsswitch/winbind_nss_aix.c
index bc0f252d79..92d4bee005 100644
--- a/source3/nsswitch/winbind_nss_aix.c
+++ b/source3/nsswitch/winbind_nss_aix.c
@@ -629,8 +629,10 @@ static int wb_aix_user_attrib(const char *key, char *attributes[],
if (strcmp(attributes[i], S_ID) == 0) {
results[i].attr_un.au_int = pwd->pw_uid;
+#ifdef _AIXVERSION_530
} else if (strcmp(attributes[i], S_PGID) == 0) {
results[i].attr_un.au_int = pwd->pw_gid;
+#endif
} else if (strcmp(attributes[i], S_PWD) == 0) {
results[i].attr_un.au_char = strdup(pwd->pw_passwd);
} else if (strcmp(attributes[i], S_HOME) == 0) {
@@ -769,7 +771,9 @@ static attrlist_t **wb_aix_attrlist(void)
{S_PGRP, AL_USERATTR, SEC_CHAR},
{S_HOME, AL_USERATTR, SEC_CHAR},
{S_SHELL, AL_USERATTR, SEC_CHAR},
+#ifdef _AIXVERSION_530
{S_PGID, AL_USERATTR, SEC_INT},
+#endif
{S_GECOS, AL_USERATTR, SEC_CHAR},
{S_SHELL, AL_USERATTR, SEC_CHAR},
{S_PGRP, AL_USERATTR, SEC_CHAR},