summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_getinfo.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-04-08 21:24:23 -0700
committerJeremy Allison <jra@samba.org>2010-04-08 21:24:23 -0700
commit3491f6d119d1f4c7e0a259a9993ce96783b77e23 (patch)
treee56be651d93626d490b699a8201a47dc1496448d /source3/smbd/smb2_getinfo.c
parent358781559526f962c96c1af88cd104946c507d05 (diff)
downloadsamba-3491f6d119d1f4c7e0a259a9993ce96783b77e23.tar.gz
samba-3491f6d119d1f4c7e0a259a9993ce96783b77e23.tar.bz2
samba-3491f6d119d1f4c7e0a259a9993ce96783b77e23.zip
Simplify call_trans2qfilepathinfo() and smbd_do_qfilepathinfo()
Remove the bool ms_dfs_link parameter from smbd_do_qfilepathinfo. It is not possible for this to be a DFS link. Remove the check_msdfs_link() call from call_trans2qfilepathinfo() - the call to filename_convert() above with a ucf_flags of zero *MUST* catch a DFS link and return NT_STATUS_PATH_NOT_COVERED in this case, so the code below checking for msdfs links is redundent. Don't add this to 3.5.x, as it's an optimization but not needed to fix bug #7339 - MSDFS is non-functional in 3.5.x. Jeremy.
Diffstat (limited to 'source3/smbd/smb2_getinfo.c')
-rw-r--r--source3/smbd/smb2_getinfo.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source3/smbd/smb2_getinfo.c b/source3/smbd/smb2_getinfo.c
index 3b50ab9cd7..3a8c07757e 100644
--- a/source3/smbd/smb2_getinfo.c
+++ b/source3/smbd/smb2_getinfo.c
@@ -246,7 +246,6 @@ static struct tevent_req *smbd_smb2_getinfo_send(TALLOC_CTX *mem_ctx,
struct ea_list *ea_list = NULL;
int lock_data_count = 0;
char *lock_data = NULL;
- bool ms_dfs_link = false;
NTSTATUS status;
ZERO_STRUCT(write_time_ts);
@@ -328,7 +327,6 @@ static struct tevent_req *smbd_smb2_getinfo_send(TALLOC_CTX *mem_ctx,
fsp->fsp_name,
delete_pending,
write_time_ts,
- ms_dfs_link,
ea_list,
lock_data_count,
lock_data,