diff options
author | Gerald Carter <jerry@samba.org> | 2005-03-23 15:36:48 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:56:14 -0500 |
commit | 97978aa86577375ab035ce76b4af6a1acb13f78e (patch) | |
tree | aa63280b79aaf8796b1a5a47bdaec5736f91314f /source3/libsmb/clidfs.c | |
parent | a49c567d4a6983098c74c23e3e65acbcbea1721b (diff) | |
download | samba-97978aa86577375ab035ce76b4af6a1acb13f78e.tar.gz |
r5994: proper fix for smbclient and win98 file servers; check the WCT value in the tcon&X reply before setting the cli_state->dfsroot flag
(This used to be commit d3822d889dbc0812335e9242566256a0f88bc00d)
Diffstat (limited to 'source3/libsmb/clidfs.c')
-rw-r--r-- | source3/libsmb/clidfs.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c index e2456800ddc..21046cd380b 100644 --- a/source3/libsmb/clidfs.c +++ b/source3/libsmb/clidfs.c @@ -595,26 +595,8 @@ BOOL cli_resolve_path( const char *mountpt, struct cli_state *rootcli, const cha /* we got an error, check for DFS referral */ - if ( !cli_dfs_check_error(rootcli) ) { - /* Check for Win98 server - doesn't support this call. */ - uint32 flgs2 = SVAL(rootcli->inbuf,smb_flg2); - - /* only deal with DS when we negotiated NT_STATUS codes and UNICODE */ - - if ( !( (flgs2&FLAGS2_32_BIT_ERROR_CODES) && (flgs2&FLAGS2_UNICODE_STRINGS) ) ) { - uint8 eclass = 0; - uint32 ecode = 0; - cli_dos_error(rootcli, &eclass, &ecode); - if ((eclass == ERRDOS) && (ecode == ERRbadfunc)) { - rootcli->dfsroot = 0; - *targetcli = rootcli; - pstrcpy( targetpath, path ); - return True; - } - } - + if ( !cli_dfs_check_error(rootcli) ) return False; - } /* check for the referral */ |