svn commit: samba r9029 - branches/SAMBA_3_0/source/lib trunk/source/lib

gd at samba.org gd at samba.org
Thu Aug 4 01:41:03 GMT 2005


Author: gd
Date: 2005-08-04 01:41:03 +0000 (Thu, 04 Aug 2005)
New Revision: 9029

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9029

Log:
Another crash bug when enumerating privileges. 
Thanks Volker!

Guenther

Modified:
   branches/SAMBA_3_0/source/lib/privileges.c
   trunk/source/lib/privileges.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/privileges.c
===================================================================
--- branches/SAMBA_3_0/source/lib/privileges.c	2005-08-04 01:38:53 UTC (rev 9028)
+++ branches/SAMBA_3_0/source/lib/privileges.c	2005-08-04 01:41:03 UTC (rev 9029)
@@ -758,7 +758,7 @@
 
 	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;
 		}
 	}

Modified: trunk/source/lib/privileges.c
===================================================================
--- trunk/source/lib/privileges.c	2005-08-04 01:38:53 UTC (rev 9028)
+++ trunk/source/lib/privileges.c	2005-08-04 01:41:03 UTC (rev 9029)
@@ -758,7 +758,7 @@
 
 	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;
 		}
 	}



More information about the samba-cvs mailing list