]> git.ipfire.org Git - thirdparty/samba.git/commit
wafsamba: let TO_LIST(mylist) return a copy of mylist
authorStefan Metzmacher <metze@samba.org>
Wed, 7 Jan 2015 08:41:02 +0000 (09:41 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 27 Jan 2015 10:02:15 +0000 (11:02 +0100)
commitcb71b4b1aafaa3fae8c19b6d2cfd1b0e40d2ff95
tree97b055d707cf430b8ada629f4caac62ae0d2ab41
parent1b5744352fef07c4a6f9492946a6bf0a9a4a4c9a
wafsamba: let TO_LIST(mylist) return a copy of mylist

In most cases we have TO_LIST(mystring) which returns an independent
list.

newlist = TO_LIST(mylist) returned just a reference to mylist.
Which means newlist.append("end") would also modify mylist.

TO_LIST() should always return an independent list.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit ab4b988ba2ba85ec2bfb01d7711d6870b3e0f710)
buildtools/wafsamba/samba_utils.py