next_token() was supposed to be a reentrant replacement for strtok(),
authorAndrew Tridgell <tridge@samba.org>
Thu, 21 Jun 2001 09:10:42 +0000 (09:10 +0000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 21 Jun 2001 09:10:42 +0000 (09:10 +0000)
commit91b8a8d1d21b810b6aca44ce647837669efd6dcf
tree2490cec37a9ae7f9f9ad9adabac033b41e26c07b
parent4ff011d88ef5b79b92d2cea1abe32c93bc03f724
next_token() was supposed to be a reentrant replacement for strtok(),
but the code suffered from bitrot and is not now reentrant. That means
we can get bizarre behaviour
i've fixed this by making next_token() reentrant and creating a
next_token_nr() that is a small non-reentrant wrapper for those lumps
of code (mostly smbclient) that have come to rely on the non-reentrant
behaviour
(This used to be commit 674ee2f1d12b0afc164a9e9072758fd1c5e54df7)
14 files changed:
source3/client/client.c
source3/client/clitar.c
source3/include/proto.h
source3/lib/cmd_interp.c
source3/lib/util.c
source3/lib/util_str.c
source3/lib/util_unistr.c
source3/libsmb/clireadwrite.c
source3/nsswitch/winbind_nss.c
source3/rpcclient/cmd_reg.c
source3/rpcclient/cmd_wkssvc.c
source3/rpcclient/rpcclient.c
source3/smbd/blocking.c
source3/utils/smbcacls.c