From 3d769de244b9193e309a7e1c8f602985b0c1fa75 Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vlendec@samba.org>
Date: Tue, 31 Jul 2007 11:26:24 +0000
Subject: r24101: Move prohibited_ea_names[] into samba_private_attr_name()

Minor cleanup
(This used to be commit 04879717229d5b74b94b79a962cca5e9624648bc)
---
 source3/smbd/trans2.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

(limited to 'source3')

diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 18b51ab56c..b5077ed8ff 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -90,18 +90,18 @@ SMB_BIG_UINT get_allocation_size(connection_struct *conn, files_struct *fsp, con
  Utility functions for dealing with extended attributes.
 ****************************************************************************/
 
-static const char *prohibited_ea_names[] = {
-	SAMBA_POSIX_INHERITANCE_EA_NAME,
-	SAMBA_XATTR_DOS_ATTRIB,
-	NULL
-};
-
 /****************************************************************************
  Refuse to allow clients to overwrite our private xattrs.
 ****************************************************************************/
 
 static BOOL samba_private_attr_name(const char *unix_ea_name)
 {
+	static const char *prohibited_ea_names[] = {
+		SAMBA_POSIX_INHERITANCE_EA_NAME,
+		SAMBA_XATTR_DOS_ATTRIB,
+		NULL
+	};
+
 	int i;
 
 	for (i = 0; prohibited_ea_names[i]; i++) {
-- 
cgit