summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-03-10 14:06:18 -0800
committerJeremy Allison <jra@samba.org>2010-03-10 14:08:30 -0800
commit367ddc3d1b525525a9dae077335e33dc0017b58e (patch)
tree40d1a3cf371f275d9928e34443a2ca06d59afe7e
parent25d27ff57687337b8a2df231e9f8f6b01538cf73 (diff)
downloadsamba-367ddc3d1b525525a9dae077335e33dc0017b58e.tar.gz
samba-367ddc3d1b525525a9dae077335e33dc0017b58e.tar.bz2
samba-367ddc3d1b525525a9dae077335e33dc0017b58e.zip
Fix bug #7234 - Symlink delete fails but incorrectly reports success to client.
Typo called LSTAT instead of STAT in the unlink by pathname path. Jeremy.
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 7147fbe1f2..7d0fa7728a 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -2403,7 +2403,7 @@ static NTSTATUS do_unlink(connection_struct *conn,
if (posix_paths) {
ret = SMB_VFS_LSTAT(conn, smb_fname);
} else {
- ret = SMB_VFS_LSTAT(conn, smb_fname);
+ ret = SMB_VFS_STAT(conn, smb_fname);
}
if (ret != 0) {
return map_nt_error_from_unix(errno);