Simplify call_trans2qfilepathinfo() and smbd_do_qfilepathinfo()
authorJeremy Allison <jra@samba.org>
Fri, 9 Apr 2010 04:24:23 +0000 (21:24 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 9 Apr 2010 04:24:23 +0000 (21:24 -0700)
commit3491f6d119d1f4c7e0a259a9993ce96783b77e23
treee56be651d93626d490b699a8201a47dc1496448d
parent358781559526f962c96c1af88cd104946c507d05
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.
source3/smbd/globals.h
source3/smbd/smb2_getinfo.c
source3/smbd/trans2.c