mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
r2082: lp_path should be lp_pathname.
Paranoia fix on mangle prefix. Jeremy.
This commit is contained in:
parent
0cfd2866df
commit
cc91bbe20d
@ -119,7 +119,7 @@ static const char *reserved_names[] =
|
||||
|
||||
this hash needs to be fast with a low collision rate (what hash doesn't?)
|
||||
*/
|
||||
static u32 mangle_hash(const char *key, unsigned length)
|
||||
static u32 mangle_hash(const char *key, unsigned int length)
|
||||
{
|
||||
u32 value;
|
||||
u32 i;
|
||||
@ -129,6 +129,7 @@ static u32 mangle_hash(const char *key, unsigned length)
|
||||
doesn't depend on the case of the long name. Note that this
|
||||
is the only place where we need to use a multi-byte string
|
||||
function */
|
||||
length = MIN(length,sizeof(fstring)-1);
|
||||
strncpy(str, key, length);
|
||||
str[length] = 0;
|
||||
strupper_m(str);
|
||||
|
@ -272,7 +272,7 @@ int register_vuid(auth_serversupplied_info *server_info, DATA_BLOB session_key,
|
||||
vuser->user.unix_name, vuser->unix_homedir);
|
||||
} else {
|
||||
DEBUG(3, ("Using static (or previously created) service for user '%s'; path = '%s'\n",
|
||||
vuser->user.unix_name, lp_path(servicenumber) ));
|
||||
vuser->user.unix_name, lp_pathname(servicenumber) ));
|
||||
vuser->homes_snum = servicenumber;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user