summaryrefslogtreecommitdiff
path: root/source3/smbd/filename.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-10-21 17:46:12 -0700
committerJeremy Allison <jra@samba.org>2011-10-22 04:57:10 +0200
commitd1a4ee604ffaac4c6ddf6b8939e3d42688d2c73d (patch)
treee65f33dbc6634d75b33be2af640970b9eb717a03 /source3/smbd/filename.c
parent60d9afa806e21bb932336f53842af9a5405ff588 (diff)
downloadsamba-d1a4ee604ffaac4c6ddf6b8939e3d42688d2c73d.tar.gz
samba-d1a4ee604ffaac4c6ddf6b8939e3d42688d2c73d.tar.bz2
samba-d1a4ee604ffaac4c6ddf6b8939e3d42688d2c73d.zip
Second part of fix for bug #8541 - readlink() on Linux clients fails if the symlink target is outside of the share.
The statcache has to do lstat instead of stat when returning cached posix pathnames.
Diffstat (limited to 'source3/smbd/filename.c')
-rw-r--r--source3/smbd/filename.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index 722da31659..835f3b40d1 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -383,7 +383,7 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx,
if((!conn->case_sensitive || !(conn->fs_capabilities &
FILE_CASE_SENSITIVE_SEARCH)) &&
- stat_cache_lookup(conn, &smb_fname->base_name, &dirpath, &start,
+ stat_cache_lookup(conn, posix_pathnames, &smb_fname->base_name, &dirpath, &start,
&smb_fname->st)) {
goto done;
}