summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-10-01 16:54:06 -0700
committerJeremy Allison <jra@samba.org>2009-10-01 16:54:06 -0700
commitce791d6645ece67c068079de71a0c96ad28c17b7 (patch)
tree1df7bea809bf0db7c68f75453389ea6148ca6d09 /source3/modules
parentc38c99af91baf4a130917f1a0eb399879ae5708f (diff)
downloadsamba-ce791d6645ece67c068079de71a0c96ad28c17b7.tar.gz
samba-ce791d6645ece67c068079de71a0c96ad28c17b7.tar.bz2
samba-ce791d6645ece67c068079de71a0c96ad28c17b7.zip
Fix bug #6769 - symlink unlink does nothing.
Always use LSTAT for POSIX pathnames. Jeremy.
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_default.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c
index c92bc8ec21..680eb1205b 100644
--- a/source3/modules/vfs_default.c
+++ b/source3/modules/vfs_default.c
@@ -1231,7 +1231,11 @@ static NTSTATUS vfswrap_streaminfo(vfs_handle_struct *handle,
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- ret = SMB_VFS_STAT(handle->conn, smb_fname);
+ if (lp_posix_pathnames()) {
+ ret = SMB_VFS_LSTAT(handle->conn, smb_fname);
+ } else {
+ ret = SMB_VFS_STAT(handle->conn, smb_fname);
+ }
sbuf = smb_fname->st;
TALLOC_FREE(smb_fname);
}