summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-08-04 01:41:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:00:23 -0500
commit1431a6030d4d869325184dafc4295737ec810f26 (patch)
tree8b45a4ca34f7eae02d9ae0ee8d45beea50b8324e
parentfdc2ab72f7a524b43c7fe03e17cf4817fc3730a2 (diff)
downloadsamba-1431a6030d4d869325184dafc4295737ec810f26.tar.gz
samba-1431a6030d4d869325184dafc4295737ec810f26.tar.bz2
samba-1431a6030d4d869325184dafc4295737ec810f26.zip
r9029: Another crash bug when enumerating privileges.
Thanks Volker! Guenther (This used to be commit e59c7c76d7ce52c7e16c4978c017636383ec57a5)
-rw-r--r--source3/lib/privileges.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/privileges.c b/source3/lib/privileges.c
index 05dff33307..8bb6108448 100644
--- a/source3/lib/privileges.c
+++ b/source3/lib/privileges.c
@@ -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;
}
}