diff options
author | Tim Potter <tpot@samba.org> | 2000-06-23 05:53:18 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2000-06-23 05:53:18 +0000 |
commit | 218653764f55b5fe16ffbda93d415a1495460956 (patch) | |
tree | 4d6ce4a1c02e160b817dbe2773726f29e5f83a5d /source3/rpc_server/srv_lookup.c | |
parent | 8005c837f5425397131b0a798d63521f61e25375 (diff) | |
download | samba-218653764f55b5fe16ffbda93d415a1495460956.tar.gz samba-218653764f55b5fe16ffbda93d415a1495460956.tar.bz2 samba-218653764f55b5fe16ffbda93d415a1495460956.zip |
Removed save directory argument to become_root() calls. Probably most of
this stuff doesn't need to be done as root anyway.
(This used to be commit c3cad0ff6482784f95fd54ba51ee5be2354bb95d)
Diffstat (limited to 'source3/rpc_server/srv_lookup.c')
-rw-r--r-- | source3/rpc_server/srv_lookup.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/rpc_server/srv_lookup.c b/source3/rpc_server/srv_lookup.c index 274c68f18d..e81f3051f3 100644 --- a/source3/rpc_server/srv_lookup.c +++ b/source3/rpc_server/srv_lookup.c @@ -113,9 +113,9 @@ int make_dom_gids(DOMAIN_GRP *mem, int num_members, DOM_GID **ppgids) uint8 attr = mem[count].attr; char *name = mem[count].name; - become_root(True); + become_root(); status = lookup_grp_rid(name, &rid, &type); - unbecome_root(True); + unbecome_root(); if (status == 0x0) { @@ -344,9 +344,9 @@ uint32 lookup_user_name(uint32 rid, char *user_name, uint8 *type) DEBUG(5,("lookup_user_name: rid: %d", rid)); /* find the user account */ - become_root(True); + become_root(); disp_info = getsamdisprid(rid); - unbecome_root(True); + unbecome_root(); if (disp_info != NULL) { @@ -537,9 +537,9 @@ uint32 lookup_added_user_rids(char *user_name, (*grp_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) { @@ -561,9 +561,9 @@ uint32 lookup_added_user_rid(char *user_name, uint32 *rid, uint8 *type) (*type) = SID_NAME_USER; /* find the user account */ - become_root(True); + become_root(); sam_pass = getsam21pwnam(user_name); - unbecome_root(True); + unbecome_root(); if (sam_pass != NULL) { |