diff options
author | David O'Neill <dmo@samba.org> | 2001-01-15 18:36:50 +0000 |
---|---|---|
committer | David O'Neill <dmo@samba.org> | 2001-01-15 18:36:50 +0000 |
commit | 27922c0430bf28dca910d2a2903cf410a4187643 (patch) | |
tree | 155ab8add4ecdfd39a5975d4f99349a8742afde7 /source3/nsswitch | |
parent | 99f36944364016c33cc63f6be509fa22b7bba619 (diff) | |
download | samba-27922c0430bf28dca910d2a2903cf410a4187643.tar.gz samba-27922c0430bf28dca910d2a2903cf410a4187643.tar.bz2 samba-27922c0430bf28dca910d2a2903cf410a4187643.zip |
Changes from APPLIANCE_HEAD:
source/rpc_parse/parse_lsa.c
- off by one unistr length bug in init_lsa_trans_name()
source/lib/util_sid.c
- resolve more BUILTIN sid values to names.
source/nsswitch/wb_client.c
- fix typo in debug message
- set errno on error so we don't get bogus value from last failure.
source/rpc_server/srv_spoolss_nt.c
- add debug to track number of open printer handles for ease of
tracking handle leaks in the future.
source/rpc_server/srv_lsa.c
- fix off-by-one string bug. This was preventing NT from
displaying names for well-know SIDs in printer permissions
dialog.
(This used to be commit 59229b9025cff54cbdd05e374616ffbf9c6fee33)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/wb_client.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source3/nsswitch/wb_client.c b/source3/nsswitch/wb_client.c index 142c61d9c1..77c48352a3 100644 --- a/source3/nsswitch/wb_client.c +++ b/source3/nsswitch/wb_client.c @@ -266,8 +266,8 @@ int winbind_initgroups(char *user, gid_t gid) result = wb_getgroups(user, &groups); - DEBUG(10,("wb_getgroups: %s: result = %s\n", user, result == -1 ? - "FAIL" : "SUCCESS")); + DEBUG(10,("winbind_getgroups: %s: result = %s\n", user, + result == -1 ? "FAIL" : "SUCCESS")); if (result != -1) { int ngroups = result, i; @@ -303,6 +303,13 @@ int winbind_initgroups(char *user, gid_t gid) result = -1; goto done; } + + } else { + + /* The call failed. Set errno to something so we don't get + a bogus value from the last failed system call. */ + + errno = EIO; } /* Free response data if necessary */ |