1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

patches from jean francois: couple of minor bugs

(This used to be commit 532b3956c66eda1b7e787b1c6906bcf574f66216)
This commit is contained in:
Luke Leighton 1998-05-05 09:04:49 +00:00
parent 20fa298e02
commit f601e6e048
2 changed files with 2 additions and 3 deletions

View File

@ -474,7 +474,7 @@ void lsa_io_trans_names(char *desc, LSA_TRANS_NAME_ENUM *trn, prs_struct *ps, in
prs_uint32(temp, ps, depth, &(trn->ptr_name[i])); /* pointer to translated name */
}
for (i = 0; i < trn->num_entries2; i++)
for (i = 0, i2 = 0; i < trn->num_entries2; i++)
{
if (trn->ptr_name[i] != 0)
{

View File

@ -401,9 +401,8 @@ uint32 lookup_user_name(uint32 rid, char *user_name, uint32 *type)
return 0x0;
}
DEBUG(5,(" uid: %d", unix_uid));
unix_uid = uid_to_user_rid(rid);
DEBUG(5,(" uid: %d", unix_uid));
/* ok, it's a user. find the user account */
become_root(True);