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)
commit674ee2f1d12b0afc164a9e9072758fd1c5e54df7
tree84890e9066bfd274e800ad74e1cb0d61e49f79ab
parent86613493a9b2e56523153486931d0bf8d39beb7a
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
14 files changed:
source/client/client.c
source/client/clitar.c
source/include/proto.h
source/lib/cmd_interp.c
source/lib/util.c
source/lib/util_str.c
source/lib/util_unistr.c
source/libsmb/clireadwrite.c
source/nsswitch/winbind_nss.c
source/rpcclient/cmd_reg.c
source/rpcclient/cmd_wkssvc.c
source/rpcclient/rpcclient.c
source/smbd/blocking.c
source/utils/smbcacls.c