]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Change process_symlink_open() to call SMB_VFS_READLINKAT().
authorJeremy Allison <jra@samba.org>
Thu, 22 Aug 2019 21:41:27 +0000 (14:41 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 23 Aug 2019 18:49:36 +0000 (18:49 +0000)
Use conn->cwd_fsp as current fsp.

No logic change for now.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
source3/smbd/open.c

index b654b3ceb9c3263b41802867b12cc2340cbb89c6..088e8cc1716beca23594bc2c257bd177a3028be4 100644 (file)
@@ -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);