]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/smbd: make get_ea_dos_attribute() public
authorRalph Boehme <slow@samba.org>
Mon, 27 Jun 2016 09:39:47 +0000 (11:39 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 28 Jun 2016 14:11:19 +0000 (16:11 +0200)
Needed in a subsequent commit to read the stored dosmode for a file.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11992

Signed-off-by: Ralph Boehme <slow@samba.org>
source3/smbd/dosmode.c
source3/smbd/proto.h

index 2bb5a4aa132618da0178ee68e8a39688f76fa3ed..73b12699a12be7029f3dff9eca7c74368de9373d 100644 (file)
@@ -257,9 +257,9 @@ static uint32_t dos_mode_from_sbuf(connection_struct *conn,
  This can also pull the create time into the stat struct inside smb_fname.
 ****************************************************************************/
 
-static bool get_ea_dos_attribute(connection_struct *conn,
-                                struct smb_filename *smb_fname,
-                                uint32_t *pattr)
+bool get_ea_dos_attribute(connection_struct *conn,
+                         struct smb_filename *smb_fname,
+                         uint32_t *pattr)
 {
        struct xattr_DOSATTRIB dosattrib;
        enum ndr_err_code ndr_err;
index 84b472d1e0884ca753e58d3910ae54b07d5eb5f1..92224611f13e997c7ef7ce4985a7f56b3e8ffc78 100644 (file)
@@ -257,6 +257,9 @@ int dos_attributes_to_stat_dos_flags(uint32_t dosmode);
 uint32_t dos_mode(connection_struct *conn, struct smb_filename *smb_fname);
 int file_set_dosmode(connection_struct *conn, struct smb_filename *smb_fname,
                     uint32_t dosmode, const char *parent_dir, bool newfile);
+bool get_ea_dos_attribute(connection_struct *conn,
+                         struct smb_filename *smb_fname,
+                         uint32_t *pattr);
 NTSTATUS file_set_sparse(connection_struct *conn,
                         struct files_struct *fsp,
                         bool sparse);