summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-07-03 13:09:33 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-08-28 15:47:37 +1000
commitdc8d29cdae68e96a3e8a0d647ee952611e69b49e (patch)
tree6b2c86c099c4b7c61577a1e3b230d78ccaaa8f49
parentf2ccff7b06a2ad762103f98a736f37da94d7cfdd (diff)
downloadsamba-dc8d29cdae68e96a3e8a0d647ee952611e69b49e.tar.gz
samba-dc8d29cdae68e96a3e8a0d647ee952611e69b49e.tar.bz2
samba-dc8d29cdae68e96a3e8a0d647ee952611e69b49e.zip
s3-vfs: Indicate the symlink destination when failing check_reduced_name
-rw-r--r--source3/smbd/vfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index d4412a92b6..0a259cc915 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -1226,8 +1226,8 @@ NTSTATUS check_reduced_name(connection_struct *conn, const char *fname)
p++;
if (strcmp(fname, p)!=0) {
DEBUG(2, ("check_reduced_name: Bad access "
- "attempt: %s is a symlink\n",
- fname));
+ "attempt: %s is a symlink to %s\n",
+ fname, p));
SAFE_FREE(resolved_name);
return NT_STATUS_ACCESS_DENIED;
}