Remove the horror that was the global smb_rw_error.
authorJeremy Allison <jra@samba.org>
Mon, 5 Nov 2007 19:12:56 +0000 (11:12 -0800)
committerJeremy Allison <jra@samba.org>
Mon, 5 Nov 2007 19:12:56 +0000 (11:12 -0800)
commit36441da4240f3e3a296eed65f0796b25b7b05a3a
tree3399982fb4f83b11d5b1258a49ea1b78725bb832
parent8f13ba45686f0f8c3415143246fba44e81fe8a73
Remove the horror that was the global smb_rw_error.
Each cli struct has it's own local copy of this variable,
so use that in client code. In the smbd server, add one
static to smbd/proccess.c and use that inside smbd. Fix
a bunch of places where smb_rw_error could be set by
calling read_data() in places where we weren't reading
from the SMB client socket (ie. winbindd).
Jeremy.
(This used to be commit 255c2adf7b6ef30932b5bb9f142ccef4a5d3d0db)
source3/client/client.c
source3/include/client.h
source3/lib/util_sock.c
source3/libsmb/clientgen.c
source3/nmbd/asyncdns.c
source3/smbd/chgpasswd.c
source3/smbd/process.c
source3/smbd/reply.c
source3/winbindd/winbindd_dual.c