diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-07-08 09:45:05 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-08 14:09:08 +0200 |
commit | f0e6e5c37d5921450d030acb98c794f0cf7224a6 (patch) | |
tree | b83056a2a118fd6dc815f61bee23d31bae0646b5 /source3/libsmb/clientgen.c | |
parent | 2b8e1480840db7ef8128352b1808a5ee91a03ca1 (diff) | |
download | samba-f0e6e5c37d5921450d030acb98c794f0cf7224a6.tar.gz samba-f0e6e5c37d5921450d030acb98c794f0cf7224a6.tar.bz2 samba-f0e6e5c37d5921450d030acb98c794f0cf7224a6.zip |
s3:libsmb: remove unused enum smb_read_errors infrastructure
metze
Diffstat (limited to 'source3/libsmb/clientgen.c')
-rw-r--r-- | source3/libsmb/clientgen.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 91e7fd4b7f..41f5cb5939 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -204,7 +204,6 @@ struct cli_state *cli_initialise_ex(int signing_state) cli->inbuf = (char *)SMB_MALLOC(cli->bufsize+SAFETY_MARGIN); cli->oplock_handler = cli_oplock_ack; cli->case_sensitive = false; - cli->smb_rw_error = SMB_READ_OK; cli->use_spnego = lp_client_use_spnego(); @@ -303,12 +302,8 @@ static void _cli_shutdown(struct cli_state *cli) * can remain active on the peer end, until some (long) timeout period * later. This tree disconnect forces the peer to clean up, since the * connection will be going away. - * - * Also, do not do tree disconnect when cli->smb_rw_error is SMB_DO_NOT_DO_TDIS - * the only user for this so far is smbmount which passes opened connection - * down to kernel's smbfs module. */ - if ( (cli->cnum != (uint16)-1) && (cli->smb_rw_error != SMB_DO_NOT_DO_TDIS ) ) { + if (cli->cnum != (uint16)-1) { cli_tdis(cli); } @@ -321,7 +316,6 @@ static void _cli_shutdown(struct cli_state *cli) close(cli->fd); } cli->fd = -1; - cli->smb_rw_error = SMB_READ_OK; /* * Need to free pending first, they remove themselves |