1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

r9029: Another crash bug when enumerating privileges.

Thanks Volker!

Guenther
(This used to be commit e59c7c76d7ce52c7e16c4978c017636383ec57a5)
This commit is contained in:
Günther Deschner 2005-08-04 01:41:03 +00:00 committed by Gerald (Jerry) Carter
parent fdc2ab72f7
commit 1431a6030d

View File

@ -758,7 +758,7 @@ char* luid_to_privilege_name(const LUID *set)
for ( i=0; !se_priv_equal(&privs[i].se_priv, &se_priv_end); i++ ) {
if ( set->low == privs[i].luid.low ) {
fstrcpy( name, privs[set->low - 1].name );
fstrcpy( name, privs[i].name );
return name;
}
}