summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index b556862e68..06f068dccc 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -1301,7 +1301,6 @@ NTSTATUS unlink_internals(connection_struct *conn, int dirtype, char *name)
int count=0;
NTSTATUS error = NT_STATUS_OK;
BOOL has_wild;
- BOOL exists=False;
BOOL bad_path = False;
BOOL rc = True;
SMB_STRUCT_STAT sbuf;
@@ -1343,8 +1342,6 @@ NTSTATUS unlink_internals(connection_struct *conn, int dirtype, char *name)
if (vfs_unlink(conn,directory) == 0) {
count++;
}
- if (!count)
- exists = vfs_file_exist(conn,directory,&sbuf);
} else {
void *dirptr = NULL;
char *dname;