1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source4/param
Noel Power ba5f00deb7 s4/param: 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
..
tests Avoid including libds/common/roles.h in public loadparm.h header. 2016-01-13 04:43:23 +01:00
loadparm.c libcli/smb: add max_credits arg to smbXcli_negprot_send() 2017-03-03 21:55:27 +01:00
provision.c python3 port for provision.c 2018-04-05 08:59:09 +02:00
provision.h s4-provision: pass use_ntvfs from C wrappers and set to true in tests/vampire 2012-08-22 01:31:57 +02:00
pyparam_util.c s4/param: Additionally accept unicode as string param in Py2 2018-04-30 15:43:19 +02:00
pyparam.c s4/param: Additionally accept unicode as string param in Py2 2018-04-30 15:43:19 +02:00
pyparam.h
secrets.c Rely on /dev/urandom 2015-10-13 04:25:38 +02:00
secrets.h Rely on /dev/urandom 2015-10-13 04:25:38 +02:00
share_classic.c lib: modules: Change XXX_init interface from XXX_init(void) to XXX_init(TALLOC_CTX *) 2017-04-22 01:17:00 +02:00
share_ldb.c lib: modules: Change XXX_init interface from XXX_init(void) to XXX_init(TALLOC_CTX *) 2017-04-22 01:17:00 +02:00
share.c lib: modules: Change XXX_init interface from XXX_init(void) to XXX_init(TALLOC_CTX *) 2017-04-22 01:17:00 +02:00
share.h s4: pass down a memory context when performing share_string_option, to allow substitutions 2014-02-20 10:11:00 +13:00
wscript_build s3/param/wscript: build PROVISION subsytem for extra-python/py3 2018-04-13 07:27:11 +02:00