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

Move from timestamp to gen count file id's for finding oplocked files

in a tdb.
Jeremy.
(This used to be commit 058ae6b58f)
This commit is contained in:
Jeremy Allison
2001-10-20 21:59:34 +00:00
parent e5868e1f57
commit 88b55f47b4
8 changed files with 900 additions and 894 deletions

View File

@ -586,7 +586,7 @@ int cli_NetUserAdd(struct cli_state *cli, RAP_USER_INFO_1 * userinfo )
PUTWORD(p, 0); /* pwencrypt */
if(userinfo->passwrd)
PUTWORD(p,strnlen(userinfo->passwrd, RAP_UPASSWD_LEN));
PUTWORD(p,MIN(strlen(userinfo->passwrd), RAP_UPASSWD_LEN));
else
PUTWORD(p, 0); /* password length */