netcmd/ldapcmp: fix wrong way for string copy
authorJoe Guo <joeg@catalyst.net.nz>
Tue, 6 Nov 2018 04:41:12 +0000 (17:41 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 21 Nov 2018 06:46:20 +0000 (07:46 +0100)
commit10855509852f8e6bc42d5410e59e76fbf2f14657
treec5e70b799bb894ec459a7989999ad922b86bf6b9
parent2851cd5bccde53a049bbd3774911b7dc4b970467
netcmd/ldapcmp: fix wrong way for string copy

Two mistakes here:

- res[:-1] will copy but lost the last char
- string is immutable in python, there is no need to copy it explicitly

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/ldapcmp.py