Matthias Dieter Wallnöfer
e6371246ef
s4:lib/registry/ldb.c - add a missing brace
...
Sorry didn't check that earlier.
2010-06-28 23:13:04 +02:00
Matthias Dieter Wallnöfer
ba01b216e2
s4:lib/registry/ldb.c - fix memory handling in "ldb_open_key"
2010-06-28 23:02:56 +02:00
Matthias Dieter Wallnöfer
094c1034d2
s4:lib/ldb/registry.c - handle the classname in the right way
...
This is for "ldb_get_key_info".
2010-06-28 23:02:56 +02:00
Matthias Dieter Wallnöfer
2fb3d8a6cc
s4:lib/registry/ldb.c - remove really useless "local_ctx"
...
"mem_ctx" should fit for these few local allocations.
2010-06-28 23:02:56 +02:00
Matthias Dieter Wallnöfer
3935502c67
s4:lib/registry/ldb.c - retrieve the classname correctly in "ldb_get_subkey_by_id"
2010-06-28 23:02:56 +02:00
Matthias Dieter Wallnöfer
77e87e66b0
s4:lib/registry/ldb.c - change the "ldb_get_value" implementation to use the value cache and not an LDB lookup
...
In addition this fixes the use of special characters in registry object names.
2010-06-28 23:02:55 +02:00
Matthias Dieter Wallnöfer
408a3aa308
s4:lib/registry/ldb.c - cosmetic - fix comment
2010-06-25 08:48:31 +02:00
Matthias Dieter Wallnöfer
14386e6ec5
s4:lib/registry/ldb.c - cosmetic - wrap lines
2010-06-25 08:48:08 +02:00
Matthias Dieter Wallnöfer
05f31c3f6d
s4:registry/regf.c - add some casts to suppress build warnings on Solaris
2010-06-20 22:33:02 +02:00
Matthias Dieter Wallnöfer
2adfe47303
s4:registry/rpc.c - fix Solaris warnings by casts
2010-06-20 22:33:02 +02:00
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