From 16c87e9198ab645df15209370288fefbd832f81e Mon Sep 17 00:00:00 2001 From: Samba Release Account Date: Wed, 18 Jun 1997 01:04:57 +0000 Subject: Fixed *really* stupid bug in register_vuid - only a problem on multi-user NT systems. Jeremy (jallison@whistle.com) (This used to be commit 6ca5c8ca3294cde56e28558bcb02c144225903d8) --- source3/smbd/password.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd') diff --git a/source3/smbd/password.c b/source3/smbd/password.c index 7885fd1bbc..803418c97e 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -157,7 +157,7 @@ uint16 register_vuid(int uid,int gid, char *name,BOOL guest) for(i = 0; i < num_validated_users; i++) { vuser = &validated_users[i]; if( vuser->uid == uid ) - return i; /* User already validated */ + return (uint16)(i + VUID_OFFSET); /* User already validated */ } validated_users = (user_struct *)Realloc(validated_users, -- cgit