summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-05-08 11:31:34 -0700
committerJeremy Allison <jra@samba.org>2009-05-08 11:39:05 -0700
commit3d6f4a7af7b91d9f9ac9fd0b00af63bb23e371f7 (patch)
tree3f5c0bc15c8c95eff144cc0c3bf3279becd417f7 /source3/smbd
parentf47b220ce1bd8632205679bbba8f679f4470360b (diff)
downloadsamba-3d6f4a7af7b91d9f9ac9fd0b00af63bb23e371f7.tar.gz
samba-3d6f4a7af7b91d9f9ac9fd0b00af63bb23e371f7.tar.bz2
samba-3d6f4a7af7b91d9f9ac9fd0b00af63bb23e371f7.zip
Fix bug #6330 - DFS doesn't work on AIX. Jeremy.
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/msdfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c
index 7bd32e8280..efbc05ceb0 100644
--- a/source3/smbd/msdfs.c
+++ b/source3/smbd/msdfs.c
@@ -413,7 +413,11 @@ static bool is_msdfs_link_internal(TALLOC_CTX *ctx,
{
SMB_STRUCT_STAT st;
int referral_len = 0;
+#if defined(HAVE_BROKEN_READLINK)
+ char link_target_buf[PATH_MAX];
+#else
char link_target_buf[7];
+#endif
size_t bufsize = 0;
char *link_target = NULL;