summaryrefslogtreecommitdiff
path: root/source3/smbd/close.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-11-13 01:35:20 +0000
committerJeremy Allison <jra@samba.org>2001-11-13 01:35:20 +0000
commitb00b04ebc6858ffa2691b4fc80b3d9600f50900c (patch)
tree410bdcbe03c15e5cbe2fe16432b8c46f3969171d /source3/smbd/close.c
parent3ea2fd3a963215b0cede563a358eeb124d3457de (diff)
downloadsamba-b00b04ebc6858ffa2691b4fc80b3d9600f50900c.tar.gz
samba-b00b04ebc6858ffa2691b4fc80b3d9600f50900c.tar.bz2
samba-b00b04ebc6858ffa2691b4fc80b3d9600f50900c.zip
Formatting fixes only.
Jeremy. (This used to be commit 27081355a97550b26c870907a471352a11921ffc)
Diffstat (limited to 'source3/smbd/close.c')
-rw-r--r--source3/smbd/close.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c
index 5c8c7996f5..fae43fca5d 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -166,21 +166,21 @@ static int close_normal_file(files_struct *fsp, BOOL normal_close)
* reference to a file.
*/
- if (normal_close && delete_on_close) {
- DEBUG(5,("close_file: file %s. Delete on close was set - deleting file.\n",
- fsp->fsp_name));
+ if (normal_close && delete_on_close) {
+ DEBUG(5,("close_file: file %s. Delete on close was set - deleting file.\n",
+ fsp->fsp_name));
if(fsp->conn->vfs_ops.unlink(conn,fsp->fsp_name) != 0) {
- /*
- * This call can potentially fail as another smbd may have
- * had the file open with delete on close set and deleted
- * it when its last reference to this file went away. Hence
- * we log this but not at debug level zero.
- */
-
- DEBUG(5,("close_file: file %s. Delete on close was set and unlink failed \
+ /*
+ * This call can potentially fail as another smbd may have
+ * had the file open with delete on close set and deleted
+ * it when its last reference to this file went away. Hence
+ * we log this but not at debug level zero.
+ */
+
+ DEBUG(5,("close_file: file %s. Delete on close was set and unlink failed \
with error %s\n", fsp->fsp_name, strerror(errno) ));
- }
- }
+ }
+ }
unlock_share_entry_fsp(fsp);
@@ -238,7 +238,7 @@ static int close_directory(files_struct *fsp, BOOL normal_close)
if(ok)
remove_pending_change_notify_requests_by_filename(fsp);
- }
+ }
/*
* Do the code common to files and directories.