summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-01-08 20:06:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:59 -0500
commitc86fbdf8cc8f6f17b23e647bd1f4714c6095b860 (patch)
treee6f2b1831a0a55d3c61c38ee53ae5a682f40c8bc /source
parent7e444e1612fa49f7db4de3256e6c67025db28806 (diff)
downloadsamba-c86fbdf8cc8f6f17b23e647bd1f4714c6095b860.tar.gz
samba-c86fbdf8cc8f6f17b23e647bd1f4714c6095b860.tar.xz
samba-c86fbdf8cc8f6f17b23e647bd1f4714c6095b860.zip
r20617: Do not notify if the delete failed
Diffstat (limited to 'source')
-rw-r--r--source/smbd/reply.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index ac0663d2381..cc181223f22 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -2032,10 +2032,10 @@ NTSTATUS unlink_internals(connection_struct *conn, uint32 dirtype,
if (SMB_VFS_UNLINK(conn,directory) == 0) {
count++;
+ notify_fname(conn, orig_name, -1,
+ NOTIFY_ACTION_REMOVED);
}
- notify_fname(conn, orig_name, -1, NOTIFY_ACTION_REMOVED);
-
} else {
struct smb_Dir *dir_hnd = NULL;
const char *dname;
@@ -2092,10 +2092,12 @@ NTSTATUS unlink_internals(connection_struct *conn, uint32 dirtype,
if (!NT_STATUS_IS_OK(error)) {
continue;
}
- if (SMB_VFS_UNLINK(conn,fname) == 0)
+ if (SMB_VFS_UNLINK(conn,fname) == 0) {
count++;
- notify_action(conn, directory, dname,
- -1, NOTIFY_ACTION_REMOVED);
+ notify_action(
+ conn, directory, dname,
+ -1, NOTIFY_ACTION_REMOVED);
+ }
DEBUG(3,("unlink_internals: succesful unlink [%s]\n",fname));
}
CloseDir(dir_hnd);