1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-04 08:23:50 +03:00

Removed save directory argument to become_root() calls. Probably most of

this stuff doesn't need to be done as root anyway.
This commit is contained in:
Tim Potter
-
parent 87c78d6d5a
commit c3cad0ff64
6 changed files with 42 additions and 42 deletions

View File

@@ -270,9 +270,9 @@ uint32 lookup_user_name(uint32 rid, char *user_name, uint32 *type)
}
/* ok, it's a user. find the user account */
become_root(True);
become_root();
disp_info = getsamdisprid(rid);
unbecome_root(True);
unbecome_root();
if (disp_info != NULL)
{
@@ -332,9 +332,9 @@ uint32 lookup_user_rid(char *user_name, uint32 *rid)
(*rid) = 0;
/* find the user account */
become_root(True);
become_root();
sam_pass = getsam21pwnam(user_name);
unbecome_root(True);
unbecome_root();
if (sam_pass != NULL)
{