summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-07-31 11:26:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:29:06 -0500
commit3d769de244b9193e309a7e1c8f602985b0c1fa75 (patch)
tree27a28579bab77985e875026f3c7738f6178fbb4b /source3
parent4473a5ec545ad4b087f6ac6738a961c6cddabb82 (diff)
downloadsamba-3d769de244b9193e309a7e1c8f602985b0c1fa75.tar.gz
samba-3d769de244b9193e309a7e1c8f602985b0c1fa75.tar.bz2
samba-3d769de244b9193e309a7e1c8f602985b0c1fa75.zip
r24101: Move prohibited_ea_names[] into samba_private_attr_name()
Minor cleanup (This used to be commit 04879717229d5b74b94b79a962cca5e9624648bc)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/trans2.c12
1 files changed, 6 insertions, 6 deletions
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++) {