summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/close.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c
index 52cd90f54a..a21399ba03 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -452,7 +452,6 @@ static NTSTATUS close_directory(files_struct *fsp, enum file_close_type close_ty
if ((close_type == NORMAL_CLOSE || close_type == SHUTDOWN_CLOSE) &&
delete_dir &&
lck->delete_token) {
- BOOL ok;
/* Become the user who requested the delete. */
@@ -470,8 +469,9 @@ static NTSTATUS close_directory(files_struct *fsp, enum file_close_type close_ty
status = rmdir_internals(fsp->conn, fsp->fsp_name);
- DEBUG(5,("close_directory: %s. Delete on close was set - deleting directory %s.\n",
- fsp->fsp_name, ok ? "succeeded" : "failed" ));
+ DEBUG(5,("close_directory: %s. Delete on close was set - "
+ "deleting directory returned %s.\n",
+ fsp->fsp_name, nt_errstr(status)));
/* unbecome user. */
pop_sec_ctx();