1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-08 05:57:51 +03:00

r15160: Fix from William Jojo I thought had already been added (but

hadn't).
Jeremy.
(This used to be commit dcbece8254e5de861d04b691d733616fc25cd585)
This commit is contained in:
Jeremy Allison 2006-04-22 01:59:23 +00:00 committed by Gerald (Jerry) Carter
parent 4af4ccc1ab
commit ad1fcb7b15

View File

@ -632,19 +632,17 @@ static int wb_aix_user_attrib(const char *key, char *attributes[],
results[i].attr_un.au_char = strdup(pwd->pw_passwd); results[i].attr_un.au_char = strdup(pwd->pw_passwd);
} else if (strcmp(attributes[i], S_HOME) == 0) { } else if (strcmp(attributes[i], S_HOME) == 0) {
results[i].attr_un.au_char = strdup(pwd->pw_dir); results[i].attr_un.au_char = strdup(pwd->pw_dir);
} else if (strcmp(attributes[0], S_SHELL) == 0) { } else if (strcmp(attributes[i], S_SHELL) == 0) {
results[i].attr_un.au_char = strdup(pwd->pw_shell); results[i].attr_un.au_char = strdup(pwd->pw_shell);
} else if (strcmp(attributes[0], S_REGISTRY) == 0) { } else if (strcmp(attributes[i], S_REGISTRY) == 0) {
results[i].attr_un.au_char = strdup("WINBIND"); results[i].attr_un.au_char = strdup("WINBIND");
} else if (strcmp(attributes[0], S_GECOS) == 0) { } else if (strcmp(attributes[i], S_GECOS) == 0) {
results[i].attr_un.au_char = strdup(pwd->pw_gecos); results[i].attr_un.au_char = strdup(pwd->pw_gecos);
} else if (strcmp(attributes[0], S_PGRP) == 0) { } else if (strcmp(attributes[i], S_PGRP) == 0) {
results[i] = pwd_to_group(pwd); results[i] = pwd_to_group(pwd);
} else if (strcmp(attributes[0], S_GECOS) == 0) { } else if (strcmp(attributes[i], S_GROUPS) == 0) {
results[i].attr_un.au_char = strdup(pwd->pw_gecos);
} else if (strcmp(attributes[0], S_GROUPSIDS) == 0) {
results[i] = pwd_to_groupsids(pwd); results[i] = pwd_to_groupsids(pwd);
} else if (strcmp(attributes[0], "SID") == 0) { } else if (strcmp(attributes[i], "SID") == 0) {
results[i] = pwd_to_sid(pwd); results[i] = pwd_to_sid(pwd);
} else { } else {
logit("Unknown user attribute '%s'\n", attributes[i]); logit("Unknown user attribute '%s'\n", attributes[i]);