Convert samba_private_attr_name() to a public function
authorRalph Boehme <rb@sernet.de>
Wed, 21 May 2014 09:52:27 +0000 (11:52 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 13 Jun 2014 11:22:18 +0000 (13:22 +0200)
Signed-off-by: Ralph Boehme <rb@sernet.de>
Reviewed-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/smbd/proto.h
source3/smbd/trans2.c

index f5988166403a55c65a67a5d18039b7e547cd4efd..3c6accfb71ef521c5817452b7bd075cc56026714 100644 (file)
@@ -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);
index 4afb27e9ecd2614a2216588aa159eb5bc01b3676..aeada68651d2d2c45a9a08a05b06a5245e0e2747 100644 (file)
@@ -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,