From 358b38b5eaafa9946c3f86f44e75aacb1d87d982 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 10 Mar 2010 14:06:18 -0800 Subject: [PATCH] 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. (cherry picked from commit 367ddc3d1b525525a9dae077335e33dc0017b58e) --- source3/smbd/reply.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index b1a4e31..8d40ed6 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -2396,7 +2396,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); -- 1.7.0.1