We use that instead of the arbitrary 4k in open.c as well
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
struct smb_filename *smb_relname,
char **_substitute)
{
- char buf[4096];
+ char buf[PATH_MAX];
ssize_t ret;
char *substitute;
NTSTATUS status;
if ((size_t)ret == sizeof(buf)) {
/*
- * Do we need symlink targets >4k?
+ * Do we need symlink targets longer than PATH_MAX?
*/
DBG_DEBUG("Got full %zu bytes from readlink, too long\n",
sizeof(buf));