s3: make recursive_rmdir function non-static
authorBjörn Baumbach <bb@sernet.de>
Mon, 1 Oct 2012 07:55:28 +0000 (09:55 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 1 Oct 2012 15:06:06 +0000 (17:06 +0200)
source3/smbd/close.c
source3/smbd/proto.h

index 8bf481dc37081a8bbbc7357eb1469d6783d863fc..9b988e07c6064c5ea595a1ee229f961da6f824c3 100644 (file)
@@ -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;
index a1cef16139b5dd201dfb072b0c103d4134699b3b..143da491e0f5957ac86a43b259ef9abb5254eae3 100644 (file)
@@ -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  */