From 9397f1cee149d248ec2d13dbfbf6cc55e4b5f919 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 6 Oct 2009 15:15:28 -0700 Subject: [PATCH] Fix bug 6769 - symlink unlink does nothing Jeremy. --- source/modules/vfs_default.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/source/modules/vfs_default.c b/source/modules/vfs_default.c index 1e95633..93adce1 100644 --- a/source/modules/vfs_default.c +++ b/source/modules/vfs_default.c @@ -993,6 +993,12 @@ static NTSTATUS vfswrap_streaminfo(vfs_handle_struct *handle, ret = SMB_VFS_FSTAT(fsp, &sbuf); } else { + if (lp_posix_pathnames()) { + ret = SMB_VFS_LSTAT(handle->conn, fname, &sbuf); + } else { + ret = SMB_VFS_STAT(handle->conn, fname, &sbuf); + } + ret = SMB_VFS_STAT(handle->conn, fname, &sbuf); } -- 1.5.4.3