]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Change smbd_do_qfilepathinfo(): case SMB_QUERY_FILE_UNIX_LINK: to call...
authorJeremy Allison <jra@samba.org>
Thu, 22 Aug 2019 21:39:56 +0000 (14:39 -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/trans2.c

index 8870abcfb7beb4bd1f39e3e38a79192926dd6ac3..0befee64c0c41a561f284249e566f30a2a6766ef 100644 (file)
@@ -5841,9 +5841,12 @@ NTSTATUS smbd_do_qfilepathinfo(connection_struct *conn,
 #else
                                return NT_STATUS_DOS(ERRDOS, ERRbadlink);
 #endif
-                               link_len = SMB_VFS_READLINK(conn,
-                                                      smb_fname,
-                                                      buffer, PATH_MAX);
+                               link_len = SMB_VFS_READLINKAT(conn,
+                                                       conn->cwd_fsp,
+                                                       smb_fname,
+                                                       buffer,
+                                                       PATH_MAX);
+
                                if (link_len == -1) {
                                        return map_nt_error_from_unix(errno);
                                }