Fix shadow parameter warning in free_empty_sys_acl()
authorTim Potter <tpot@samba.org>
Tue, 27 May 2003 06:54:35 +0000 (06:54 +0000)
committerTim Potter <tpot@samba.org>
Tue, 27 May 2003 06:54:35 +0000 (06:54 +0000)
source/smbd/posix_acls.c

index 86efd8fb96ca26a55ac1b692dad476c272fd9ed7..e2cc3af2815c09f4f21f9bb5f412faa4f728ff56 100644 (file)
@@ -2097,17 +2097,17 @@ static struct canon_ace *canon_ace_entry_for(struct canon_ace *list, SMB_ACL_TAG
  
 ****************************************************************************/
 
-SMB_ACL_T free_empty_sys_acl(connection_struct *conn, SMB_ACL_T acl)
+SMB_ACL_T free_empty_sys_acl(connection_struct *conn, SMB_ACL_T the_acl)
 {
        SMB_ACL_ENTRY_T entry;
 
-       if (!acl)
+       if (!the_acl)
                return NULL;
-       if (conn->vfs_ops.sys_acl_get_entry(conn, acl, SMB_ACL_FIRST_ENTRY, &entry) != 1) {
-               conn->vfs_ops.sys_acl_free_acl(conn, acl);
+       if (conn->vfs_ops.sys_acl_get_entry(conn, the_acl, SMB_ACL_FIRST_ENTRY, &entry) != 1) {
+               conn->vfs_ops.sys_acl_free_acl(conn, the_acl);
                return NULL;
        }
-       return acl;
+       return the_acl;
 }
 
 /****************************************************************************