1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
Commit Graph

699 Commits

Author SHA1 Message Date
Jelmer Vernooij
c92db7b6dc python: Use samba.tests.TestCase, make sure base class tearDown and
setUp methods are called, fix formatting.
2010-06-19 22:46:45 +02:00
Stefan Metzmacher
6dbcffb51d s4:lib: merge LDB_WRAP and LDBSAMBA and make LDBSAMBA a library.
This is needed to remove samba specifc symbols from the bundled
ldb, in order to get the ABI right.

metze

Signed-off-by: Andreas Schneider <asn@samba.org>
2010-06-16 14:07:28 +02:00
Matthias Dieter Wallnöfer
2c325236be s4:regshell - fix an "asprintf" 2010-05-28 10:04:46 +02:00
Matthias Dieter Wallnöfer
8ddb4f6c84 s4:regshell - don't use negative exit codes 2010-05-28 10:04:45 +02:00
Jelmer Vernooij
f9ca9e46ad Finish removal of iconv_convenience in public API's. 2010-05-18 11:45:30 +02:00
Stefan Metzmacher
0a70788e19 s4:lib/registry: fix the waf build
The pass to a source file is relative to the wscript* file.

metze
2010-04-27 17:05:29 +02:00
Günther Deschner
a833be0c4e s4: use shared registry functions.
Guenther
2010-04-27 16:42:15 +02:00
Andrew Tridgell
211bf1ea17 s4-waf: removed the unused installdir= option to SAMBA_BINARY()
This was left over from the automatic conversion of the config.mk
files
2010-04-18 21:47:00 +10:00
Matthias Dieter Wallnöfer
0b7bb7f85a s4:registry - "patchfile_preg.c" - use more "sizeof"s on length specification
This makes the code more clear to read.
2010-04-10 19:58:09 +02:00
Matthias Dieter Wallnöfer
458a441f7f s4:registry - "patchfile_preg.c" - fix indentation 2010-04-10 19:58:08 +02:00
Matthias Dieter Wallnöfer
c7c8f0ccf3 s4:registry - "patchfile_preg.c" - fix a datatype
This should be an "uint16_t" (only two bytes are written).
2010-04-10 19:58:08 +02:00
Matthias Dieter Wallnöfer
0a154b940d s4:registry - "patchfile_preg.c" - assign a better type to the "i" counter variable
The "i" variable sums up "size" values which are of type "size_t". Therefore
also "i" itself should be from this type.
2010-04-08 23:57:35 +02:00
Matthias Dieter Wallnöfer
aa9e782a4d s4:registry - "patchfile_preg.c" - make a SIVAL statement nicer 2010-04-08 23:57:34 +02:00
Jelmer Vernooij
814e20e7da pynet: Create a net class. 2010-04-08 23:22:55 +02:00
Matthias Dieter Wallnöfer
ef3490e799 s4:registry - "REGF backend" - don't ignore wrong-sized REG_DWORD/REG_DWORD_BIG_ENDIAN values 2010-04-08 15:29:40 +02:00
Matthias Dieter Wallnöfer
e2aec9d81f s4:registry - "patchfile_preg.c" - fix the read operation of the data length on big-endian platforms 2010-04-08 12:27:27 +02:00
Matthias Dieter Wallnöfer
2164ba51e2 s4:registry - "patchfile_preg.c" - use "sizeof(uint32_t)" for some size specifications
Looks nicer.
2010-04-08 12:27:27 +02:00
Matthias Dieter Wallnöfer
79fccc45bc s4:registry - "regf backend" - fix it up regarding REG_DWORD/REG_DWORD_BIG_ENDIAN_VALUES
This is needed to make it platform independently work (also on big endian
platforms as little endian).

Also add a size check before storing a DWORD.
2010-04-07 20:22:57 +02:00
Matthias Dieter Wallnöfer
acfd02574b s4:pyregistry.c - fix indentation 2010-04-07 15:05:19 +02:00
Andrew Tridgell
b9aa63887c s4-waf: cleanup use of LIBPOPT vs popt dependency 2010-04-06 20:27:13 +10:00
Andrew Tridgell
f9eae32f4b s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them 2010-04-06 20:27:11 +10:00
Andrew Tridgell
bd44f14d8f s4-waf: enable the pc_files in the build rules 2010-04-06 20:27:10 +10:00
Andrew Tridgell
844acb2260 build: waf quicktest nearly works
Rewrote wafsamba using a new dependency handling system, and started
adding the waf test code
2010-04-06 20:26:48 +10:00
Andrew Tridgell
e916aff9e1 build: much nicer pidl rules 2010-04-06 20:26:47 +10:00
Andrew Tridgell
7c3234c485 build: enable ENFORCE_GROUP_ORDERING()
also fixed ASN1 target names
2010-04-06 20:26:47 +10:00
Matthias Dieter Wallnöfer
01f1f87aa9 s4:registry/tests/diff.c - try to make also this test compatible with big-endian platforms 2010-03-30 13:02:27 +02:00
Matthias Dieter Wallnöfer
b08bbbb42d s4:registry/tests/hive.c - make the test compatible with big-endian platforms 2010-03-30 12:54:38 +02:00
Matthias Dieter Wallnöfer
c5d1d68f0b s4:registry/util.c - remove those "talloc_free"s
They're not really necessary.
2010-03-29 21:52:12 +02:00
Matthias Dieter Wallnöfer
c38e96278a s4:registry/tests/generic.c - fix the DWORD_* types test to work also against big endian platforms 2010-03-29 21:38:23 +02:00
Matthias Dieter Wallnöfer
8d0b67b644 s4:registry/ldb.c - Break with "NULL" as an error case when the data doesn't fit in the "reg_ldb_pack_value" function 2010-03-29 21:38:18 +02:00
Matthias Dieter Wallnöfer
e25e60ba2f s4:registry/ldb.c - Always check the "name" attribute for != NULL
If it's NULL return invalid parameter as Windows does. The name is "" if it
refers to the default value.
2010-03-29 20:53:38 +02:00
Matthias Dieter Wallnöfer
90d2902c73 s4:registry - move the UTF16 length calculation for "reg_key_get_info" into the RPC server code
It does fit better there.
2010-03-29 20:36:32 +02:00
Matthias Dieter Wallnöfer
8efea42948 s4:registry/util.c - fix indentation 2010-03-29 19:55:16 +02:00
Jelmer Vernooij
a5e6b5589b registry: Fix compilation. 2010-03-29 18:44:00 +02:00
Wilco Baan Hofman
38fc9dfdc6 Revert reordering from commit 51bedf9395
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-29 18:44:00 +02:00
Wilco Baan Hofman
2d6791286b Revert "s4:registry - util.c - add harder checks for inputs on "reg_val_data_string""
This reverts commit eb8c8a0eca.

Conflicts:

	source4/lib/registry/util.c

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-29 18:44:00 +02:00
Wilco Baan Hofman
16427efb74 Revert "s4:registry - util.c - move the "REG_NONE" case in the conversion functions on top of the switch"
This reverts commit 4e6c0e1f6f.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-29 18:44:00 +02:00
Wilco Baan Hofman
b1c70d49c9 Revert "s4:registry - util.c - treat unsupported and binary values as the same in the conversion functions"
This reverts commit cc3eec1681.

Conflicts:

	source4/lib/registry/util.c

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-29 18:44:00 +02:00
Wilco Baan Hofman
cb670f366c Revert "s4:registry - adaptions for "add memory contexts for delete value/key functions""
This reverts commit 43170dafbc.

Conflicts:

	source4/lib/registry/dir.c
	source4/lib/registry/util.c

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-29 18:43:59 +02:00
Wilco Baan Hofman
f8e67f198a Revert "s4:registry - "util" - make "reg_key_add_abs" consistent with "reg_key_del_abs""
This reverts commit 9d8592978e.

Conflicts:

	source4/lib/registry/util.c

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-29 18:43:59 +02:00
Wilco Baan Hofman
d90f1a7146 Revert of commit 5b6ad54f43 in registry.h
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-29 18:43:59 +02:00
Wilco Baan Hofman
541e2942f8 Remove incorrect const, something that was correct in commit 9c3e6249fd
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-29 18:43:59 +02:00
Wilco Baan Hofman
3629798f72 Revert "s4:registry - "util" - remove "const" from "reg_abs_path""
This reverts commit 9c3e6249fd.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-29 18:43:59 +02:00
Andrew Tridgell
7ed349cace pytalloc: allow for using a system libtalloc-dev with pytalloc
When we have a system talloc library, we still need to grab pytalloc.h
from lib/talloc. We don't want to just use -Ilib/talloc, as otherwise
we'll get the in-tree talloc.h which may not be compatible with the
system talloc.h

So we need to give the path to pytalloc.h
2010-03-29 21:34:29 +11:00
Andrew Tridgell
088096d1ba python: use '#!/usr/bin/env python' to cope with varying install locations
this should be much more portable
2010-03-25 14:37:19 +11:00
Matthias Dieter Wallnöfer
3a2488870f s4:registry - "reg_ldb_pack_value" - provide workarounds when the server receives non-standard data.
For now we reset/delete the "data" attribute. Anyway there is the need to find
a better solution (we probably want to change the format and save all data as
we got it like Windows itself does).

These workarounds are needed since for example the Windows 2000 Registry Editor
initialises empty REG_SZ strings with content '\0' and length 1 (not a valid
UTF16 sequence - "convert_string_talloc" breaks). So we simply reset/delete the
"data" attribute which works (no content).
2010-03-23 16:46:17 +01:00
Matthias Dieter Wallnöfer
0426b5b786 s4:registry - "LDB backend" - fix indentation 2010-03-23 16:46:17 +01:00
Matthias Dieter Wallnöfer
a6f5e495b1 s4:registry - "LDB backend" - revert the length check for UTF16 strings
Let this do the "convert_string_talloc" function as it was before.
2010-03-23 00:26:01 +01:00
Matthias Dieter Wallnöfer
bca353561e s4:registry - "LDB backend" - revert the binary storage of "REG_SZ", "REG_DWORD" and "REG_QWORD"
We agreed that this hack isn't the best of the possible solutions.
2010-03-23 00:16:19 +01:00
Matthias Dieter Wallnöfer
c69afbbfd0 s4:registry - "reg_key_del/add_abs": call "talloc_free" only on valid objects 2010-03-22 22:38:45 +01:00