summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalph Boehme <rb@sernet.de>2014-05-21 11:52:27 +0200
committerMichael Adam <obnox@samba.org>2014-06-13 13:22:18 +0200
commitf03e8b12c6959fb8213fbfcd3792b70094bd9a71 (patch)
tree154b4e3b145bbf4ee459619ce116f24356c2c8d3
parent3defbe273459262f333cca91e90a0941a812df1a (diff)
downloadsamba-f03e8b12c6959fb8213fbfcd3792b70094bd9a71.tar.gz
samba-f03e8b12c6959fb8213fbfcd3792b70094bd9a71.tar.xz
samba-f03e8b12c6959fb8213fbfcd3792b70094bd9a71.zip
Convert samba_private_attr_name() to a public function
Signed-off-by: Ralph Boehme <rb@sernet.de> Reviewed-by: Christof Schmitt <cs@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--source3/smbd/proto.h1
-rw-r--r--source3/smbd/trans2.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index f5988166403..3c6accfb71e 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -1056,6 +1056,7 @@ NTSTATUS check_access(connection_struct *conn,
uint32_t access_mask);
uint64_t smb_roundup(connection_struct *conn, uint64_t val);
uint64_t get_FileIndex(connection_struct *conn, const SMB_STRUCT_STAT *psbuf);
+bool samba_private_attr_name(const char *unix_ea_name);
NTSTATUS get_ea_value(TALLOC_CTX *mem_ctx, connection_struct *conn,
files_struct *fsp, const char *fname,
const char *ea_name, struct ea_struct *pea);
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 4afb27e9ecd..aeada68651d 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -120,7 +120,7 @@ uint64_t get_FileIndex(connection_struct *conn, const SMB_STRUCT_STAT *psbuf)
Refuse to allow clients to overwrite our private xattrs.
****************************************************************************/
-static bool samba_private_attr_name(const char *unix_ea_name)
+bool samba_private_attr_name(const char *unix_ea_name)
{
static const char * const prohibited_ea_names[] = {
SAMBA_POSIX_INHERITANCE_EA_NAME,