summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorBjörn Baumbach <bb@sernet.de>2012-10-01 09:55:28 +0200
committerVolker Lendecke <vl@samba.org>2012-10-01 17:06:06 +0200
commit7a76762c688f4fc7519dbd204b036963c460e093 (patch)
treef18a4ca628fce0202ffa44ad0be6db8dc3037c33 /source3/smbd
parent07b918ade8b9f932d6945912d22a04269198a2fe (diff)
downloadsamba-7a76762c688f4fc7519dbd204b036963c460e093.tar.gz
samba-7a76762c688f4fc7519dbd204b036963c460e093.tar.bz2
samba-7a76762c688f4fc7519dbd204b036963c460e093.zip
s3: make recursive_rmdir function non-static
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/close.c8
-rw-r--r--source3/smbd/proto.h3
2 files changed, 7 insertions, 4 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c
index 8bf481dc37..9b988e07c6 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -853,13 +853,13 @@ static NTSTATUS close_normal_file(struct smb_request *req, files_struct *fsp,
return status;
}
/****************************************************************************
- Static function used by reply_rmdir to delete an entire directory
+ Function used by reply_rmdir to delete an entire directory
tree recursively. Return True on ok, False on fail.
****************************************************************************/
-static bool recursive_rmdir(TALLOC_CTX *ctx,
- connection_struct *conn,
- struct smb_filename *smb_dname)
+bool recursive_rmdir(TALLOC_CTX *ctx,
+ connection_struct *conn,
+ struct smb_filename *smb_dname)
{
const char *dname = NULL;
char *talloced = NULL;
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index a1cef16139..143da491e0 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -139,6 +139,9 @@ void msg_close_file(struct messaging_context *msg_ctx,
struct server_id server_id,
DATA_BLOB *data);
NTSTATUS delete_all_streams(connection_struct *conn, const char *fname);
+bool recursive_rmdir(TALLOC_CTX *ctx,
+ connection_struct *conn,
+ struct smb_filename *smb_dname);
/* The following definitions come from smbd/conn.c */