From: Jeremy Allison Date: Thu, 22 Aug 2019 21:41:27 +0000 (-0700) Subject: s3: smbd: Change process_symlink_open() to call SMB_VFS_READLINKAT(). X-Git-Tag: tevent-0.10.1~170 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=406bde26545ef3d86bf19319b60262ee2c13825b;p=thirdparty%2Fsamba.git s3: smbd: Change process_symlink_open() to call SMB_VFS_READLINKAT(). Use conn->cwd_fsp as current fsp. No logic change for now. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Böhme --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index b654b3ceb9c..088e8cc1716 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -497,7 +497,8 @@ static int process_symlink_open(struct connection_struct *conn, } /* Read the link target. */ - link_len = SMB_VFS_READLINK(conn, + link_len = SMB_VFS_READLINKAT(conn, + conn->cwd_fsp, smb_fname, link_target, PATH_MAX - 1);