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)
committerJeremy Allison <jra@samba.org>
Wed, 10 Mar 2010 22:08:30 +0000 (14:08 -0800)
Typo called LSTAT instead of STAT in the unlink by pathname path.

Jeremy.

source3/smbd/reply.c

index 7147fbe1f2dcfc289e65f27834cce9d8c7bfe4d5..7d0fa7728a9a35808965cb23a13ea4cb1c779cd6 100644 (file)
@@ -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);