Jeremy Allison
56a5d05b8b
r22590: Make TALLOC_ARRAY consistent across all uses.
...
That should be it....
Jeremy.
(This used to be commit 603233a98bbf65467c8b4f04719d771c70b3b4c9)
2007-10-10 12:19:49 -05:00
Jeremy Allison
be8b0685a5
r22589: Make TALLOC_ARRAY consistent across all uses.
...
Jeremy.
(This used to be commit 8968808c3b5b0208cbad9ac92eaf948f2c546dd9)
2007-10-10 12:19:49 -05:00
Jeremy Allison
79de0ad946
r22588: Make all uses of TALLOC_MEMDUP consistent.
...
Jeremy.
(This used to be commit 8ad13718af0ba1fcb10a6f1631b1ed3cb8d11175)
2007-10-10 12:19:48 -05:00
Michael Adam
b93f78025d
r22496: reg_enumvalue should return WERR_NO_MORE_ITEMS instead of
...
WERR_BAD_FILE when all items have been successfully enumerated.
Besides seeming the reasonable code to return,
this is what I have seen from w2k3, w2k, wxp.
(This used to be commit e09e0d642d98165257c7c43ca2634a430772dcee)
2007-10-10 12:19:39 -05:00
Volker Lendecke
a40df6f92d
r22135: Check in most of Michael Adam's net conf utility. A good share of this patch
...
is moving functions around to fix some linker dependencies for the registry.
Michael, I've renamed your auth_utils2.c to token_utils.c.
Thanks!
Volker
(This used to be commit 9de16f25c1c3e0b203da47391772ef2e2fe291ac)
2007-10-10 12:19:16 -05:00
Stefan Metzmacher
bc2b6436d0
r22009: change TDB_DATA from char * to unsigned char *
...
and fix all compiler warnings in the users
metze
(This used to be commit 3a28443079c141a6ce8182c65b56ca210e34f37f)
2007-10-10 12:19:00 -05:00
Stefan Metzmacher
56ba447668
r22001: change prototype of dump_data(), so that it takes unsigned char * now,
...
which matches what samba4 has.
also fix all the callers to prevent compiler warnings
metze
(This used to be commit fa322f0cc9c26a9537ba3f0a7d4e4a25941317e7)
2007-10-10 12:18:59 -05:00
Stefan Metzmacher
c2f09ee288
r21979: make use of string_tdb_data()
...
to avoid creating the TDB_DATA struct from strings "by hand"
note: we can't use the tdb_*_bystring functions here, as the key isn't
null-terminated here...
metze
(This used to be commit 29b42ea89cbdd9f2c12fa448b116c49669467faf)
2007-10-10 12:18:55 -05:00
Stefan Metzmacher
4d7c7bb689
r21978: make use of tdb_*_bystring()
...
to avoid creating the TDB_DATA struct from strings "by hand"
metze
(This used to be commit 1a0599d7aadef651e4d5b88b59c95e8a118dfa5e)
2007-10-10 12:18:55 -05:00
Stefan Metzmacher
3f370211a5
r21977: little cosmetic change to remove a local var that's not really needed
...
metze
(This used to be commit 71c3880e8924c57dcd60573d628b8eb29cee6055)
2007-10-10 12:18:54 -05:00
Jeremy Allison
4901d7f10b
r21225: Couple of fixes from Martin Zielinski mz@seh.de,
...
one typo, one to make sure that time initialization
is done before modules that depend on it (printer
initialization).
Jeremy.
(This used to be commit 6df32b4a6a9abd40e963c188b4c8769f15a0ab9b)
2007-10-10 12:17:48 -05:00
Volker Lendecke
08bf58d8fc
r21219: Speed up the initial startup time of smbd on systems with loaded disk
...
subsystems. See the comment in the diff.
Volker
(This used to be commit 92fdb1193de8e7c857603e4fcd4a92b9a0a0f3bd)
2007-10-10 12:17:48 -05:00
Volker Lendecke
0e4ab9a5ac
r20626: Fix a memleak found by the IBM checker -- not on 3.0.24
...
(This used to be commit 9d0a789e32e6a6501421edb25bc8197c9e06846d)
2007-10-10 12:16:59 -05:00
Herb Lewis
e59e787b48
r20269: merge -r20264:20267 from SAMBA_3_0_24
...
more no previous prototype warnings
(This used to be commit 41be182f78762372ae13759ede5d2bd40a71d7f5)
2007-10-10 12:16:38 -05:00
Volker Lendecke
ed7e7efd20
r20210: registry_fetch_values is not needed anymore, fix typo
...
(This used to be commit 77e556f4a358fec0d754e50417097bf5a874c500)
2007-10-10 12:16:32 -05:00
Volker Lendecke
5ee2748106
r20209: Fix two memleaks
...
(This used to be commit 92bc870768a2ff839b3b10897a4f09a3ece92704)
2007-10-10 12:16:32 -05:00
Volker Lendecke
5b1f85a832
r20037: Reduce code size slightly by shuffling stuff around
...
(This used to be commit 0742faaacd496f9cc4581a1fad74217024383661)
2007-10-10 12:16:22 -05:00
Volker Lendecke
2494868ffb
r20020: Arglll... eventlogadm links against reg_db but not the rest of the registry
...
stuff. Revert the last change.
This needs better fixing.
Volker
(This used to be commit ad1e00430bf5c4130023d30e9c8266ecdc640d2b)
2007-10-10 12:16:21 -05:00
Volker Lendecke
61bd0c8e45
r20019: Replace one set of tricky code by calls to another set of tricky code:
...
Initializing the reg_db now uses reg_createkey and reg_setvalue.
Volker
(This used to be commit cab5ccbbe484795f13531726d68b978073262e33)
2007-10-10 12:16:21 -05:00
Volker Lendecke
b0a6049391
r20018: Fix a memleak in reg_createkey
...
(This used to be commit 281640823bfe25f513f44f6c6d7022a11b957fa5)
2007-10-10 12:16:21 -05:00
Volker Lendecke
4a272ef0a8
r20016: Add two utility functions for easy opening/creating registry keys
...
(This used to be commit ad22a467185e871d893e8133741b525889c2aa6f)
2007-10-10 12:16:20 -05:00
Volker Lendecke
9690500e57
r20005: reg_open_path should become the replacement for regkey_open_internal.
...
(This used to be commit a6039eb46c6506b4e55e816d50edb618e800007f)
2007-10-10 12:16:19 -05:00
Volker Lendecke
1a66ed34cd
r20004: Remove a const, "name" is allocated anyway
...
(This used to be commit dc0300ec70ff67aaec9b0bab6a1dd4d0e6fde5ac)
2007-10-10 12:16:19 -05:00
Volker Lendecke
ecf90c495e
r19991: Sorry for this 2000-liner...
...
The main thing here is a rewrite of srv_winreg_nt.c. The core functionality
has moved to registry/reg_api.c which is then usable by the rest of Samba as
well.
On that way it fixes creating keys with more than one element in the
path. This did not work before.
Two things that sneaked in (sorry :-) is the change of some routines from
NTSTATUS to WERROR the removed "parent" argument to regkey_open_internal.
Volker
(This used to be commit fea52801de8c7b85c578d200c599475680c5339f)
2007-10-10 12:16:18 -05:00
Volker Lendecke
e57de5730c
r19990: Fix comment
...
(This used to be commit 8b3d860f27d166f1a0b8019f9c9c91355c6becdf)
2007-10-10 12:16:18 -05:00
Volker Lendecke
575845ccbe
r19963: Add 'registry shares = yes' and registry key security descriptors.
...
(This used to be commit 6cab254c49e07b11c170511ec613f0f33914c3e6)
2007-10-10 12:16:16 -05:00
Volker Lendecke
4a42371c20
r19948: Fix a memleak
...
(This used to be commit fd429c8c06e01452f04700518c93ecfaa51c3140)
2007-10-10 12:16:15 -05:00
Volker Lendecke
1c91cca86e
r19947: Change regkey_open_internal to take the parent key and a talloc_ctx as
...
arguments. This also replaces regkey_close_internal by TALLOC_FREE.
Volker
(This used to be commit a177bbb2d5611f03cec25b7577c2e6a542f94a69)
2007-10-10 12:16:14 -05:00
Volker Lendecke
213bc9d440
r19913: Fix a const warning
...
(This used to be commit a660993d140b860691c3ed0b71d3e8023e5a7c57)
2007-10-10 12:16:08 -05:00
Volker Lendecke
b189e6d76e
r19912: Move the subkey cache to srv_winreg_nt.c
...
(This used to be commit 01a53590a6325413551016effe302585a3a1e656)
2007-10-10 12:16:08 -05:00
Volker Lendecke
015534e254
r19872: Move the value cache to srv_winreg_nt.c. Fix some minor issues found while
...
playing with regedit.exe.
Volker
(This used to be commit 81bd816fa2afe89261aff2f395e8d056b73e515c)
2007-10-10 12:16:03 -05:00
Volker Lendecke
fb904d2299
r19858: Fix a memleak, add a const
...
(This used to be commit ed4dc405127cefd1c222e1bdd63fcaaae8e83f13)
2007-10-10 12:16:03 -05:00
Volker Lendecke
969a7faa7c
r19853: Update a link
...
(This used to be commit ce44158dde64cb65a3f51dfe1734f3c3d7f1bfd9)
2007-10-10 12:16:02 -05:00
Volker Lendecke
7a19259051
r19841: Wrap regdb_store_keys and regdb_store_values in tdb transactions
...
(This used to be commit 5ec737922041b723b9e60c08049ace5fa2fa5dec)
2007-10-10 12:16:01 -05:00
Volker Lendecke
9e29e5d2b8
r19839: Fix the build, we are not there yet :-)
...
(This used to be commit ff4123c8f2e07e282800c166a4e00b1015ddd45c)
2007-10-10 12:16:01 -05:00
Volker Lendecke
45111ff1cb
r19838: We have to delete the value record as well, otherwise the old values pop up
...
again if the key is re-created.
Volker
(This used to be commit f722f3341f65f8737c10eb59048c1263a58afd44)
2007-10-10 12:16:01 -05:00
Volker Lendecke
aad7194999
r19837: Some reformatting (Jerry, I hope you do not mind
...
(This used to be commit 6639f8c1190419e183d92ed0322e1026375717e6)
2007-10-10 12:16:01 -05:00
Volker Lendecke
45fcd0f0b7
r19828: Add a helper function to pull *and* unparse local registry values
...
(This used to be commit 969eb9cda6eba93068472e952e27138b9384c364)
2007-10-10 12:16:00 -05:00
Volker Lendecke
bfad442144
r19780: Ok, regkey_open_internal needs a regkey_close_internal. Giving a talloc ctx is
...
misleading here. This needs fixing properly :-)
Volker
(This used to be commit f808182346aa16bb2f3a9383e28d318099a5e14e)
2007-10-10 12:15:55 -05:00
Volker Lendecke
76b320c8df
r19779: Fail properly on talloc_strdup failure
...
(This used to be commit b57e446789530cb7e18e107478ca8b59a19d990f)
2007-10-10 12:15:55 -05:00
Volker Lendecke
e82cd437cc
r19778: Make regkey_open_internal take a talloc ctx
...
(This used to be commit cb7f4211b8441642dce9594522dc9588475a7719)
2007-10-10 12:15:55 -05:00
Volker Lendecke
cbc03ec6df
r19777: Make regsubkey_ctr_addkey return WERROR. Nobody checks this so far, but this
...
will change.
Volker
(This used to be commit 17c7c337f64b082c1bf1045a4093c279deeec958)
2007-10-10 12:15:54 -05:00
Jelmer Vernooij
4db7642caa
r18745: Use the Samba4 data structures for security descriptors and security descriptor
...
buffers.
Make security access masks simply a uint32 rather than a structure
with a uint32 in it.
(This used to be commit b41c52b9db5fc4a553b20a7a5a051a4afced9366)
2007-10-10 12:00:54 -05:00
Stefan Metzmacher
258a465e20
r18605: sync dlinklist.h with samba4, that means DLIST_ADD_END()
...
and DLIST_DEMOTE() now take the type of the tmp pointer
not the tmp pointer itself anymore.
metze
(This used to be commit 2f58645b7094e81dff3734f11aa183ea2ab53d2d)
2007-10-10 11:51:59 -05:00
Jeremy Allison
2eff779b17
r17878: Fix possible null deref found by Stanford checker.
...
Jeremy.
(This used to be commit ae20201494f44cb98e58ba98531a79feeeb82b47)
2007-10-10 11:38:56 -05:00
Jeremy Allison
5f925a0190
r17867: Fix null deref in error code path. Found by the
...
Stanford checker.
Jeremy.
(This used to be commit 09652dc71ce13bd305e653557e43731378398dd6)
2007-10-10 11:38:55 -05:00
Volker Lendecke
02eea79624
r17333: Some C++ warnings
...
(This used to be commit be9aaffdaccae06c8c035eaf31862e34b7cfbe38)
2007-10-10 11:38:26 -05:00
Volker Lendecke
4f33673b41
r17047: Fix a typo and a possible NULL dereference
...
(This used to be commit c0d9114706345c6bc1fa392bbf9ee81b146cba85)
2007-10-10 11:19:22 -05:00
Jeremy Allison
fbdcf2663b
r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need
...
to do the upper layer directories but this is what
everyone is waiting for....
Jeremy.
(This used to be commit 9dafb7f48ca3e7af956b0a7d1720c2546fc4cfb8)
2007-10-10 11:19:14 -05:00
Jeremy Allison
68e4fc8066
r16650: Fix bug #3890 reported by jason@ncac.gwu.edu.
...
Jeremy.
(This used to be commit 590b58cb507e5a6e459ff0c975beb9056336f233)
2007-10-10 11:19:06 -05:00