s3-vfs: Put vfs_aixacl_util.c helper functions into a header file
authorAndrew Bartlett <abartlet@samba.org>
Mon, 13 Aug 2012 10:14:43 +0000 (20:14 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 14 Aug 2012 00:16:11 +0000 (02:16 +0200)
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Aug 14 02:16:11 CEST 2012 on sn-devel-104

source3/modules/vfs_aixacl.c
source3/modules/vfs_aixacl_util.c
source3/modules/vfs_aixacl_util.h [new file with mode: 0644]

index c4bb02eebf5f4ec77de945fda1e5a2ccc7005df7..9f66d2a70cc7ff743efbdc7b097267416f37bb47 100644 (file)
@@ -20,9 +20,7 @@
 #include "includes.h"
 #include "system/filesys.h"
 #include "smbd/smbd.h"
-
-extern SMB_ACL_T aixacl_to_smbacl( struct acl *file_acl);
-extern struct acl *aixacl_smb_to_aixacl(SMB_ACL_TYPE_T acltype, SMB_ACL_T theacl);
+#include "vfs_aixacl_util.h"
 
 SMB_ACL_T aixacl_sys_acl_get_file(vfs_handle_struct *handle,
                                    const char *path_p,
index d867f9d92fcf07e4bae65e1dbe61a1a19512d429..b359c401efee2c651f4c7f4474417ccb280fc0d6 100644 (file)
@@ -20,6 +20,7 @@
 #include "includes.h"
 #include "system/filesys.h"
 #include "smbd/smbd.h"
+#include "vfs_aixacl_util.h"
 
 SMB_ACL_T aixacl_to_smbacl(struct acl *file_acl)
 {
diff --git a/source3/modules/vfs_aixacl_util.h b/source3/modules/vfs_aixacl_util.h
new file mode 100644 (file)
index 0000000..2447252
--- /dev/null
@@ -0,0 +1,22 @@
+/*
+   Unix SMB/Netbios implementation.
+   VFS module to get and set posix acls
+   Copyright (C) Jim McDonough <jmcd@us.ibm.com> 2006
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+SMB_ACL_T aixacl_to_smbacl( struct acl *file_acl);
+struct acl *aixacl_smb_to_aixacl(SMB_ACL_TYPE_T acltype, SMB_ACL_T theacl);
+