From 76c3f7bb525b7d32a9d8ccd0d9b66c6eb6e81968 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 6 Oct 2009 15:51:49 -0700 Subject: [PATCH] Fix bug 6769 - symlink unlink does nothing Jeremy. --- source3/modules/vfs_default.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 0a66531..ca401b6 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -1130,7 +1130,11 @@ static NTSTATUS vfswrap_streaminfo(vfs_handle_struct *handle, ret = SMB_VFS_FSTAT(fsp, &sbuf); } else { - ret = SMB_VFS_STAT(handle->conn, fname, &sbuf); + if (lp_posix_pathnames()) { + ret = SMB_VFS_LSTAT(handle->conn, fname, &sbuf); + } else { + ret = SMB_VFS_STAT(handle->conn, fname, &sbuf); + } } if (ret == -1) { -- 1.5.4.3