1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-24 15:17:06 +03:00

303 Commits

Author SHA1 Message Date
Tim Potter
ba41aa6863 Sync up compiler warning fixes.
(This used to be commit 225182a3a36c72b10643c9568e5cc1f80c0173f1)
2003-01-15 22:18:33 +00:00
Jeremy Allison
98ac4503ac Finish adding strings to all talloc_init() calls.
Jeremy.
(This used to be commit aa8439a49ec4b9f433745fefa1e769e45398f4df)
2002-12-23 23:54:10 +00:00
Tim Potter
5a346d6cb0 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.
(This used to be commit 36091157b24cfbd76c15ddc20681a1feeaa706db)
2002-12-20 01:19:04 +00:00
cvs2svn Import User
580110a47c This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit bdb5206b45a3e1360cc1a7e9f87299eeaa3c8d9c) 2002-12-12 23:35:56 +00:00
Martin Pool
aabcd65020 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.
(This used to be commit 1e63dc101a5085a46b9632ba657e5d5cd7505751)
2002-12-12 05:24:55 +00:00
Martin Pool
022a853781 * Ignore .pyc and .pyo files produced as a side-effect of running
Python examples.
(This used to be commit 3bb4bd3ed642a61e54c44c40c31f0e2242977614)
2002-12-12 04:44:47 +00:00
Tim Potter
d3f53e7f4e Merge of compile tweaks for python tdbpack module.
(This used to be commit b50816b500c4be0dda2cc79e0927d8a7dab65fd2)
2002-12-12 00:08:55 +00:00
Tim Potter
fad3464ffe Some more tweaking for compilation of py_tdbpack.
(This used to be commit 89be695b2997e97dfc40afd17bb61b59b85634e4)
2002-12-11 01:25:18 +00:00
Tim Potter
f7f3d42acf Merge from HEAD:
>FUNCTION_MACRO change broke the Python modules.
>
>Also fix up string pasting (I thought this should only be a warning?)
(This used to be commit 5bd90f310aa6303a5c949b46591f9fcf82a175b8)
2002-12-05 23:05:28 +00:00
Tim Potter
8623ca6f82 FUNCTION_MACRO change broke the Python modules.
Also fix up string pasting (I thought this should only be a warning?)
(This used to be commit 739285ff694e9ffd317ad47aec373e2007c20f45)
2002-12-04 23:31:47 +00:00
Herb Lewis
73bf5369b8 use FILE_MACRO instead of __FILE__
use FUNCTION_MACRO instead of __FUNCTION_
(This used to be commit 243763d6eb107ab2444d81025232c8fe795baaf1)
2002-12-03 21:49:00 +00:00
Tim Potter
f3e3a56ea9 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
(This used to be commit d3998307adc50ba50defe610cb656c73799ae3b9)
2002-11-29 02:58:59 +00:00
Tim Potter
9c7891e964 Fixed silly bug.
(This used to be commit 191c1596f5e939e733c9262c3beaf956328c7be6)
2002-11-29 02:44:09 +00:00
Tim Potter
583652aa1a Another global_myname() fix from HEAD.
(This used to be commit 880083e2e614d88675f98a46cfe7acdaeb167db3)
2002-11-29 01:13:05 +00:00
Tim Potter
77c25dfbaa Merge from HEAD:
>Added some extra code to test absence/presence of LM and NT passwords.
(This used to be commit 89a2ee7e72fef444632659af13feaf94d3f6e9ce)
2002-11-29 01:12:15 +00:00
Tim Potter
9fe17afefe Merge of argument check fixes from HEAD.
(This used to be commit 5ea2edaadd87c24f63991678183c5d01225eabf7)
2002-11-29 01:11:08 +00:00
Tim Potter
531ecf607a Merge of global_myname() fixes from HEAD.
(This used to be commit 7adb6af115dfc1189c2894d45a796b7b8dfe7a05)
2002-11-29 01:10:31 +00:00
Tim Potter
602635d484 Merge of compiler warning fixes from HEAD.
(This used to be commit 80e61a7546b2ac070f8dda56b9810a352ac669e4)
2002-11-29 01:10:10 +00:00
Jeremy Allison
5767dbbdcd Change default codepage to UNIX.
Jeremy.
(This used to be commit 537cd78268abae8005de73c7bfd9ec24865da654)
2002-11-27 21:01:26 +00:00
Jeremy Allison
f069aaa671 Fix comment - 850 -> iso8859-1
Jeremy.
(This used to be commit 6639693746ba4c8f6622325ac143f8b1b3bd7538)
2002-11-27 21:00:55 +00:00
Jeremy Allison
cb51beac60 Remove use of 'F' - make 'f' and 'p' do unix (iso8859-1) encoding.
Jeremy.
(This used to be commit e88bbec2a06bd92b8cfa33efdf166c4fa72cb656)
2002-11-27 20:58:45 +00:00
Tim Potter
0de32d4533 Fix some argument checking bugs found by testsuite.
(This used to be commit 93306f581e3fa37d1aea67e93dc83d5a6d2fcb3f)
2002-11-25 00:25:31 +00:00
Tim Potter
9e745ada4c Added some extra code to test absence/presence of LM and NT passwords.
(This used to be commit 6f1d48555f53ea3b32a7b8a6cf0fc2e148c311b7)
2002-11-22 06:51:14 +00:00
Tim Potter
b7b7ff55cc Fixed some compiler warnings.
(This used to be commit 9e871cc256a70bc64e59630bd31c890cc231368e)
2002-11-22 06:18:03 +00:00
Tim Potter
d1bedec87c Fixed some globals that escaped the recent globalcide.
(This used to be commit 4580e16908fe06a2c2b6738683b7cb840467e61c)
2002-11-22 06:15:43 +00:00
Martin Pool
abc32ea850 Add support for new 'F' format, which is a string in the default
codepage.
(This used to be commit ff1244c457d0525343bcc7e89a899d8c7d14b8b6)
2002-11-22 01:12:23 +00:00
Tim Potter
09cc065c31 Merge from HEAD:
>Fix typo in docstring.

>Remove non-integer Pointer values, which are no longer supported.
(This used to be commit dcef3ae5caaa4461a279a4463a7b467e75efa6d7)
2002-11-19 01:07:24 +00:00
Tim Potter
630a571454 Merge from HEAD:
>Rename unpack_* functions to be consistent
>
>Decode CP850 strings when unpacking
>
>Add variable giving default encoding name
(This used to be commit de26084f0d6cac2caf43976f18f0b56deee53167)
2002-11-19 01:06:10 +00:00
Tim Potter
d797c7986e Fix typo in docstring.
(This used to be commit 9f9347bc03448f8b93d536f9cd2df8fb496a4c22)
2002-11-19 01:02:43 +00:00
Martin Pool
477025a6f6 Rename unpack_* functions to be consistent
Decode CP850 strings when unpacking

Add variable giving default encoding name
(This used to be commit 8cbaea2afa6faca80eced70d625359165afaa10c)
2002-11-12 22:23:36 +00:00
Martin Pool
9b7c4c1c81 Rename pytdbpack_unpack -> pytdbunpack
(This used to be commit e62baf3a76e0e4f642e542812868db614632de00)
2002-11-12 22:08:59 +00:00
Martin Pool
5d3bc0bc83 Just reorder functions to put related ones together
(This used to be commit 7863c948b73785e49d04227e87d8b4b47fd61f58)
2002-11-12 22:07:11 +00:00
Martin Pool
664a5061e0 Remove dead code for packing buffers which has now been reimplemented.
(This used to be commit 001779dffd18e1f6a83496c94ead185d4bb42204)
2002-11-12 22:00:57 +00:00
Martin Pool
7031a02c01 Remove dead code for packing buffers which has now been reimplemented.
(This used to be commit 62ca27d140d55cbb271b97624023540ae7c18882)
2002-11-12 21:42:36 +00:00
Martin Pool
cf671ca0df Remove non-integer Pointer values, which are no longer supported.
(This used to be commit 4a18526257ec4582679efa7a21d0b31ad07992fb)
2002-11-12 21:40:37 +00:00
Tim Potter
9c3446d347 Sync with HEAD.
(This used to be commit 130c1d0765502be839f87a8d0f4e47f5a3461c97)
2002-11-11 05:48:12 +00:00
Martin Pool
5fabbb0573 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.
(This used to be commit 2480d385db0527b71cc5cd23c4fab4655df84485)
2002-11-09 01:47:54 +00:00
Tim Potter
3955716f90 Sync up python stuff from HEAD.
(This used to be commit 92c76e16fa40adc6148b9c11b3e377f35c464975)
2002-11-07 01:12:24 +00:00
Tim Potter
f0718b6b35 Added enumprinterkey function.
Stub for deleteprinterkey.
(This used to be commit 64e04380f7ad9b471a681638dfde93e0c65f9fa3)
2002-11-06 23:36:07 +00:00
Tim Potter
f4766f4900 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.
(This used to be commit acecee6f2bb92c4992078f4fe2dfae4414f43482)
2002-11-06 23:34:12 +00:00
Martin Pool
6b0761b327 pytdbpack_unpack: Clean up, and correct the handling of '$'.
(This used to be commit dd73568f97ad51c93f096001058fd31fa14e88ae)
2002-11-06 01:59:57 +00:00
Martin Pool
618db4e739 Add another test case for repeated-unpack ('$')
(This used to be commit 2a492c4854d4c6469d8c7d21aa187fef6303b641)
2002-11-06 01:50:31 +00:00
Martin Pool
d7eac6c356 pytdbpack_pack_data: Allow first argument to be any kind of Number,
not just an Integer.  Coerce appropriately.
(This used to be commit 248067931a2a8eeee86ea343bddf96d2bd727dbf)
2002-11-05 21:26:35 +00:00
Martin Pool
17356de921 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.
(This used to be commit db67c5f7e53b231fe217a29a15888e8895ce2229)
2002-11-05 21:22:14 +00:00
Martin Pool
af7ecaf61b 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.
(This used to be commit 49a0ba46e6693bb819440d4ab40045afc4a7ae17)
2002-11-05 02:54:07 +00:00
Martin Pool
97d34f85c7 Update test cases.
(This used to be commit db2c393dd488dad2ce95f3b3cf0297d5b0159ae7)
2002-11-05 02:52:01 +00:00
Martin Pool
d6d94ee143 pytdbpack_unpack: Handle unpacking Buffers into (LEN, DATA): form list
by appending, rather than preallocating.
(This used to be commit d72b144e03b9a9cb3d676527ddc5b2d0e1ef42f8)
2002-11-05 00:24:32 +00:00
Martin Pool
e6aa69bac7 Add more test cases that now work.
(This used to be commit 7827536c15ac27ebcc4e9c342be6e203248195f6)
2002-11-04 23:10:47 +00:00
Martin Pool
3f9dac6948 pytdbpack_pack_data: Allow 'd' and 'w' formats to take either Integer
or Long arguments.
(This used to be commit 2085595565b99295d04a6663aad1ccac5bc1b657)
2002-11-04 23:08:53 +00:00
Martin Pool
0011607aca Make sure uint32 unpacking is unsigned, and generates a Python long so
that it can represent all the unsigned values
(This used to be commit 2593e1588355643bb76a9b8869573fe38fd3bc3e)
2002-11-04 22:59:48 +00:00