summaryrefslogtreecommitdiffstats
path: root/source/lib/set_vuid.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/lib/set_vuid.c')
-rw-r--r--source/lib/set_vuid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/lib/set_vuid.c b/source/lib/set_vuid.c
index 3a635bbaea0..b25963ffbea 100644
--- a/source/lib/set_vuid.c
+++ b/source/lib/set_vuid.c
@@ -34,16 +34,16 @@ void init_vuid(void)
/****************************************************************************
become the user of a connection number
****************************************************************************/
-BOOL become_vuser(uint16 vuid)
+BOOL become_vuser(const vuser_key *k)
{
- user_struct *vuser = get_valid_user_struct(vuid);
+ user_struct *vuser = get_valid_user_struct(k);
unbecome_vuser();
if((vuser != NULL) && !check_vuser_ok(&vcache, vuser, -1))
return False;
- return become_unix_sec_ctx(vuid, NULL, vuser->uid, vuser->gid,
+ return become_unix_sec_ctx(k, NULL, vuser->uid, vuser->gid,
vuser->n_groups, vuser->groups);
}