1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

r24101: Move prohibited_ea_names[] into samba_private_attr_name()

Minor cleanup
(This used to be commit 04879717229d5b74b94b79a962cca5e9624648bc)
This commit is contained in:
Volker Lendecke 2007-07-31 11:26:24 +00:00 committed by Gerald (Jerry) Carter
parent 4473a5ec54
commit 3d769de244

View File

@ -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++) {