summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-06-11 13:05:37 +0200
committerStefan Metzmacher <metze@samba.org>2012-09-08 19:42:55 +0200
commitba011c1de0e8dc4c6bb9e2b53fef2f0fcff43854 (patch)
tree0966511c7c981dca1fbfecff7ee760f87fa38ec2 /source3
parentf5a6b7b301d1bc345cbfdc349e483ac5318e6a78 (diff)
downloadsamba-ba011c1de0e8dc4c6bb9e2b53fef2f0fcff43854.tar.gz
samba-ba011c1de0e8dc4c6bb9e2b53fef2f0fcff43854.tar.bz2
samba-ba011c1de0e8dc4c6bb9e2b53fef2f0fcff43854.zip
s3:smbd: make fd_open() public
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/open.c8
-rw-r--r--source3/smbd/proto.h2
2 files changed, 6 insertions, 4 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index bf2a6729bf..5fa45aa15d 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -274,10 +274,10 @@ static NTSTATUS check_parent_access(struct connection_struct *conn,
fd support routines - attempt to do a dos_open.
****************************************************************************/
-static NTSTATUS fd_open(struct connection_struct *conn,
- files_struct *fsp,
- int flags,
- mode_t mode)
+NTSTATUS fd_open(struct connection_struct *conn,
+ files_struct *fsp,
+ int flags,
+ mode_t mode)
{
struct smb_filename *smb_fname = fsp->fsp_name;
NTSTATUS status = NT_STATUS_OK;
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index b7bab6ebfc..ee8ebc01b8 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -599,6 +599,8 @@ void reply_nttranss(struct smb_request *req);
NTSTATUS smbd_check_access_rights(struct connection_struct *conn,
const struct smb_filename *smb_fname,
uint32_t access_mask);
+NTSTATUS fd_open(struct connection_struct *conn, files_struct *fsp,
+ int flags, mode_t mode);
NTSTATUS fd_close(files_struct *fsp);
void change_file_owner_to_parent(connection_struct *conn,
const char *inherit_from_dir,