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)
commit255c2adf7b6ef30932b5bb9f142ccef4a5d3d0db
treebf41e986c53b419b97c8eb02c60a99b6996aa01d
parent5721a511d8dd327717bcd9c2053c4bd08f01185c
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.
source/client/client.c
source/include/client.h
source/lib/util_sock.c
source/libsmb/clientgen.c
source/nmbd/asyncdns.c
source/smbd/chgpasswd.c
source/smbd/process.c
source/smbd/reply.c
source/winbindd/winbindd_dual.c