summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-02-11 14:55:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:54 -0500
commit8a96fe6a59f0d94f55a584b3c0d052130865e533 (patch)
treee660a30f1e38a1993698390a74899435724b5704
parentd9a29aade0f01df1fa00ccdb8691b02b39bc1d14 (diff)
downloadsamba-8a96fe6a59f0d94f55a584b3c0d052130865e533.tar.gz
samba-8a96fe6a59f0d94f55a584b3c0d052130865e533.tar.bz2
samba-8a96fe6a59f0d94f55a584b3c0d052130865e533.zip
r21280: Fix an uninitialized variable warning. Jeremy, please check.
Volker (This used to be commit 4faa37a515fb6c6fa0f9364271755f954429beec)
-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();