From fe295358dfa495c8f4b564784d728b37882e877d Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 13 Aug 2012 20:14:43 +1000 Subject: [PATCH] s3-vfs: Put vfs_aixacl_util.c helper functions into a header file Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Tue Aug 14 02:16:11 CEST 2012 on sn-devel-104 --- source3/modules/vfs_aixacl.c | 4 +--- source3/modules/vfs_aixacl_util.c | 1 + source3/modules/vfs_aixacl_util.h | 22 ++++++++++++++++++++++ 3 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 source3/modules/vfs_aixacl_util.h diff --git a/source3/modules/vfs_aixacl.c b/source3/modules/vfs_aixacl.c index c4bb02eebf5..9f66d2a70cc 100644 --- a/source3/modules/vfs_aixacl.c +++ b/source3/modules/vfs_aixacl.c @@ -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, diff --git a/source3/modules/vfs_aixacl_util.c b/source3/modules/vfs_aixacl_util.c index d867f9d92fc..b359c401efe 100644 --- a/source3/modules/vfs_aixacl_util.c +++ b/source3/modules/vfs_aixacl_util.c @@ -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 index 00000000000..2447252ebaa --- /dev/null +++ b/source3/modules/vfs_aixacl_util.h @@ -0,0 +1,22 @@ +/* + Unix SMB/Netbios implementation. + VFS module to get and set posix acls + Copyright (C) Jim McDonough 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 . +*/ + +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); + -- 2.11.4.GIT