36091157b2
Merge from HEAD:
...
>CR1333: Fix memory leak when unpacking some structures.
>
>* (pytdbunpack_item): PyList_Append creates an additional reference to
> the appended object. Therefore, release the initial reference after
> it's added to the list.
-
bdb5206b45
This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.
-
1e63dc101a
CR1333: Fix memory leak when unpacking some structures.
...
* (pytdbunpack_item): PyList_Append creates an additional reference to
the appended object. Therefore, release the initial reference after
it's added to the list.
-
3bb4bd3ed6
* Ignore .pyc and .pyo files produced as a side-effect of running
...
Python examples.
-
b50816b500
Merge of compile tweaks for python tdbpack module.
-
89be695b29
Some more tweaking for compilation of py_tdbpack.
-
5bd90f310a
Merge from HEAD:
...
>FUNCTION_MACRO change broke the Python modules.
>
>Also fix up string pasting (I thought this should only be a warning?)
-
739285ff69
FUNCTION_MACRO change broke the Python modules.
...
Also fix up string pasting (I thought this should only be a warning?)
-
243763d6eb
use FILE_MACRO instead of __FILE__
...
use FUNCTION_MACRO instead of __FUNCTION_
-
d3998307ad
Merge a bunch of trivial changes from HEAD. The difference remaining
...
should actual functional differences between HEAD and 3.0.
- Mostly reformatting
- Removal of unecessary #include "smb.h"
- Merge of dyn_DRIVERFILE removal
- Silly bug fix for python code
-
191c1596f5
Fixed silly bug.
-
880083e2e6
Another global_myname() fix from HEAD.
-
89a2ee7e72
Merge from HEAD:
...
>Added some extra code to test absence/presence of LM and NT passwords.
-
5ea2edaadd
Merge of argument check fixes from HEAD.
-
7adb6af115
Merge of global_myname() fixes from HEAD.
-
80e61a7546
Merge of compiler warning fixes from HEAD.
-
537cd78268
Change default codepage to UNIX.
...
Jeremy.
-
6639693746
Fix comment - 850 -> iso8859-1
...
Jeremy.
-
e88bbec2a0
Remove use of 'F' - make 'f' and 'p' do unix (iso8859-1) encoding.
...
Jeremy.
-
93306f581e
Fix some argument checking bugs found by testsuite.
-
6f1d48555f
Added some extra code to test absence/presence of LM and NT passwords.
-
9e871cc256
Fixed some compiler warnings.
-
4580e16908
Fixed some globals that escaped the recent globalcide.
-
ff1244c457
Add support for new 'F' format, which is a string in the default
...
codepage.
-
dcef3ae5ca
Merge from HEAD:
...
>Fix typo in docstring.
>Remove non-integer Pointer values, which are no longer supported.
-
de26084f0d
Merge from HEAD:
...
>Rename unpack_* functions to be consistent
>
>Decode CP850 strings when unpacking
>
>Add variable giving default encoding name
-
9f9347bc03
Fix typo in docstring.
-
8cbaea2afa
Rename unpack_* functions to be consistent
...
Decode CP850 strings when unpacking
Add variable giving default encoding name
-
e62baf3a76
Rename pytdbpack_unpack -> pytdbunpack
-
7863c948b7
Just reorder functions to put related ones together
-
001779dffd
Remove dead code for packing buffers which has now been reimplemented.
-
62ca27d140
Remove dead code for packing buffers which has now been reimplemented.
-
4a18526257
Remove non-integer Pointer values, which are no longer supported.
-
130c1d0765
Sync with HEAD.
-
2480d385db
Rewrite all the packing stuff so that it converts 'f' strings to CP850
...
on encoding. (Tough luck if your Samba codepage is not 850.) It's
much cleaner and possibly more efficient now too: just build one big
list of strings, then zip it up at the end.
Still need to do this for unpacking.
-
92c76e16fa
Sync up python stuff from HEAD.
-
64e04380f7
Added enumprinterkey function.
...
Stub for deleteprinterkey.
-
acecee6f2b
Moved function to parse a list of unicode strings into util file.
...
It's now used in parsing printer driver structures and the response
from the enumprinterkey rpc.
-
dd73568f97
pytdbpack_unpack: Clean up, and correct the handling of '$'.
-
2a492c4854
Add another test case for repeated-unpack ('$')
-
248067931a
pytdbpack_pack_data: Allow first argument to be any kind of Number,
...
not just an Integer. Coerce appropriately.
-
db67c5f7e5
pytdbpack_pack_data: If the first argument to a 'B' code is not an
...
Integer, raise an error rather than just returning Null, which breaks
the interpreter.
-
49a0ba46e6
pytdbpack_pack_data: Oops, since B is separately encoded as buffer and
...
length we need separate counters traversing the format and value
sequences to pack them.
-
db2c393dd4
Update test cases.
-
d72b144e03
pytdbpack_unpack: Handle unpacking Buffers into (LEN, DATA): form list
...
by appending, rather than preallocating.
-
7827536c15
Add more test cases that now work.
-
2085595565
pytdbpack_pack_data: Allow 'd' and 'w' formats to take either Integer
...
or Long arguments.
-
2593e15883
Make sure uint32 unpacking is unsigned, and generates a Python long so
...
that it can represent all the unsigned values
-
a9c2817c79
Re-add some tests which do work with both implementations
-
6be885da2c
Comment out test cases where the old and new parser are different.
-