summaryrefslogtreecommitdiffstats
path: root/source/smbd/vfs.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-02-05 16:22:27 -0800
committerKarolin Seeger <kseeger@samba.org>2010-02-24 16:25:10 +0100
commita056ee7f4f1ecc4e54e3cda58df73e2ed66b41e7 (patch)
treebb98ad841d98414fa3dc7a9a85b953b840bf43b2 /source/smbd/vfs.c
parenteadf5b5cfc0f796b381b174395d19c20de6e714f (diff)
downloadsamba-a056ee7f4f1ecc4e54e3cda58df73e2ed66b41e7.tar.gz
samba-a056ee7f4f1ecc4e54e3cda58df73e2ed66b41e7.tar.xz
samba-a056ee7f4f1ecc4e54e3cda58df73e2ed66b41e7.zip
Fix bug 7104 - "wide links" and "unix extensions" are incompatible.
Change parameter "wide links" to default to "no". Ensure "wide links = no" if "unix extensions = yes" on a share. Fix man pages to refect this. Remove "within share" checks for a UNIX symlink set - even if widelinks = no. The server will not follow that link anyway. Correct DEBUG message in check_reduced_name() to add missing "\n" so it's really clear when a path is being denied as it's outside the enclosing share path. Jeremy. (cherry picked from commit c1b05ae4febfba1a419eee0d04c3886de9f5fee0)
Diffstat (limited to 'source/smbd/vfs.c')
-rw-r--r--source/smbd/vfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/vfs.c b/source/smbd/vfs.c
index 1e137dd9089..129014bc776 100644
--- a/source/smbd/vfs.c
+++ b/source/smbd/vfs.c
@@ -935,7 +935,7 @@ NTSTATUS check_reduced_name(connection_struct *conn, const char *fname)
/* Check for widelinks allowed. */
if (!lp_widelinks(SNUM(conn)) && (strncmp(conn->connectpath, resolved_name, con_path_len) != 0)) {
- DEBUG(2, ("reduce_name: Bad access attempt: %s is a symlink outside the share path", fname));
+ DEBUG(2, ("reduce_name: Bad access attempt: %s is a symlink outside the share path\n", fname));
if (free_resolved_name) {
SAFE_FREE(resolved_name);
}