Fix bug #7234 - Symlink delete fails but incorrectly reports success to client.
authorJeremy Allison <jra@samba.org>
Wed, 10 Mar 2010 22:06:18 +0000 (14:06 -0800)
committerKarolin Seeger <kseeger@samba.org>
Mon, 29 Mar 2010 07:41:01 +0000 (09:41 +0200)
Typo called LSTAT instead of STAT in the unlink by pathname path.

Jeremy.
(cherry picked from commit 367ddc3d1b525525a9dae077335e33dc0017b58e)
(cherry picked from commit 8f30cb3d43cf043a997711ee96400e1f7697f16f)

source3/smbd/reply.c

index b1a4e31951f3a0bf2f159fe6430e6828cb74ed47..8d40ed6c572a22d022d062e0353bbccc5f2f7321 100644 (file)
@@ -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);