1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/libcli/nbt
Noel Power 7020af427e libcli/nbt: Additionally accept unicode as string param in Py2
With the changes to make samba python code Py2/Py3 compatible there
now are many instances where string content is decoded.
Decoded string variables in Py2 are returned as the unicode type. Many
Py2 c-module functions that take string arguments only check for the
string type. However now it's quite possibe the content formally passed
as a string argument is now passed as unicode after being decoded,
such arguments are rejected and code can fail subtly. This only affects
places where the type is directly checked e.g. via PyStr_Check etc.
arguments that are parsed by ParseTuple* functions generally already
accept both string and unicode (if 's', 'z', 's*' format specifiers
are used)

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
2018-04-30 15:43:19 +02:00
..
man docs: remove duplicate word "name" in nmblookup4 manpage. 2013-11-19 09:52:39 +01:00
tools s4: nmblookup: Allocate event context off NULL instead of talloc_autofree_context(). 2017-05-13 21:01:25 +02:00
libnbt.h libnbt: Apply some const 2018-02-13 16:42:22 +01:00
lmhosts.c lib: Fix whitespace in lmhosts.c 2016-12-27 14:21:27 +01:00
namequery.c libnbt: Add an explicit "mem_ctx" to name_request_send 2018-04-13 18:14:41 +02:00
namerefresh.c libnbt: Add an explicit "mem_ctx" to name_request_send 2018-04-13 18:14:41 +02:00
nameregister.c libnbt: Add an explicit "mem_ctx" to name_request_send 2018-04-13 18:14:41 +02:00
namerelease.c libnbt: Add an explicit "mem_ctx" to name_request_send 2018-04-13 18:14:41 +02:00
nbt_proto.h libnbt: Add an explicit "mem_ctx" to name_request_send 2018-04-13 18:14:41 +02:00
nbtname.c libnbt: Apply some const 2018-02-13 16:42:22 +01:00
nbtsocket.c libnbt: Align data types 2018-04-13 18:14:42 +02:00
pynbt.c libcli/nbt: Additionally accept unicode as string param in Py2 2018-04-30 15:43:19 +02:00
wscript_build python3 port for netbios module 2018-03-23 07:28:25 +01:00