summaryrefslogtreecommitdiffstats
path: root/source
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix Coverity ID 472Volker Lendecke2008-03-271-6/+4
| | | | | | | Simo, S4 also has this code. You might want to cherry-pick. Volker (cherry picked from commit 94c29f55937e50dcf49124d28ad4e82c7fb4133e)
* Fix Coverity ID 477Volker Lendecke2008-03-271-2/+1
| | | | (cherry picked from commit f17b1b0fc6340d21f1a2f43aa7eb2e87f851c51f)
* Fix Coverity ID 478Volker Lendecke2008-03-271-2/+1
| | | | (cherry picked from commit 5f77938dc4a280b654b8d08656f19a7d04cea8c7)
* Fix Coverity ID 479Volker Lendecke2008-03-271-1/+1
| | | | (cherry picked from commit 70b33397ba6e18f40087fb642a1be62ee68d5f3a)
* Fix Coverity ID 480Volker Lendecke2008-03-271-1/+1
| | | | (cherry picked from commit 45677e8694f0e383baa65712faec6a565ec0ce5c)
* Fix Coverity ID 450Volker Lendecke2008-03-271-1/+5
| | | | (cherry picked from commit 700cceb6940c95997cfef374cffd50729a35528a)
* Fix Coverity ID 453Volker Lendecke2008-03-271-2/+2
| | | | (cherry picked from commit 8f875674e7cf9ebd405561b1e3ab72b0284ce321)
* Fix Coverity ID 462Volker Lendecke2008-03-271-2/+4
| | | | (cherry picked from commit 9cf1e16a9c3cade9cd905f719de07578b3a91b1e)
* Fix Coverity ID 432Volker Lendecke2008-03-271-2/+0
| | | | (cherry picked from commit 7070c77ee2a9c3c9ff1b3c7b93008b13b80ac02b)
* Fix Coverity ID 436Volker Lendecke2008-03-271-0/+5
| | | | (cherry picked from commit 9e0ee1ad4fe0f0e7dec0b6824ef234147d845b8d)
* Fix Coverity warningsVolker Lendecke2008-03-272-2/+10
| | | | | ID 449, 448, 447, 446, 445, 444, 443, 442, 441, 440, 439, 438, 437 (cherry picked from commit 0d50b4ee9068d04d1d9eb7786e08775d7ba16bc8)
* On Solaris, size_t seems to be only 32 bit.Volker Lendecke2008-03-271-5/+7
| | | | | | | Fix bug 5341, thanks a lot to Karoly Vegh for testing it! Volker (cherry picked from commit 19eb8c9316b10b1277121e90d0d3ef50ee562118)
* Fix a bug in the output from print_canonical_sockaddr() fix from ↵Gerald W. Carter2008-03-271-2/+8
| | | | | | | 36f8bafbd3dee66a8.... Make sure that IPv4 addresses are not enclised in []'s. (cherry picked from commit 4ddf58dbdc3d74cb72788ef4a2ec7587d4948c40)
* net_conf: fix non-testmode import function.Michael Adam2008-03-271-1/+11
| | | | | Michael (cherry picked from commit cd17cc745a35db8ee158f59a5fff1f0f26cf9c6e)
* libsmbconf: text - pass the cache instead of all private data to pm_process.Michael Adam2008-03-271-40/+40
| | | | | Michael (cherry picked from commit ee46f0eca6ea21d0c51103252fecf911bb448687)
* libsmbconf: text - change the cache to be tallocedMichael Adam2008-03-271-31/+47
| | | | | | | | instead of having it directly as a member in the private data struct. This makes it easier to flush and initialize the cache. Michael (cherry picked from commit 03efb72b4632e2bbb0838ca56a3e556448bda5c5)
* libsmbconf: in text backend, put flushing of the cache into a helper function.Michael Adam2008-03-271-6/+12
| | | | | | | And use it also in the close operation. Michael (cherry picked from commit 8cb288124993eb59459e7e9777c65e58c0554d55)
* net_conf: reformat - re-indent one function call.Michael Adam2008-03-271-2/+5
| | | | | Michael (cherry picked from commit 9ef9d4c4e77523d7f3cc5fdac199559896e585bd)
* net_conf: add casts to avoid compiler warnings.Michael Adam2008-03-271-6/+6
| | | | | Michael (cherry picked from commit 1c6b9a0ac34c4a7b4e000300db8dffdbb09fe7da)
* net_conf: rename "ctx" to "mem_ctx" for clarity.Michael Adam2008-03-271-22/+22
| | | | | | | There are also smbconf contexts arount... Michael (cherry picked from commit 5171df66eb54c9819b3b40045755f5e9b2cf36c2)
* net_conf: use talloc_stackframe() instead of talloc_init().Michael Adam2008-03-271-5/+5
| | | | | Michael (cherry picked from commit ab4fd03705c61114742d8438dece69b9c37c3b38)
* net_conf: fix import function by using the new text backend of smbconf.Michael Adam2008-03-271-195/+59
| | | | | | | | | | | | | Originally, lp_load() was used to import files to registry. This had several bugs. Most notably, options explicitly set to default values were silently dropped, and all parametric options were ignored. This new implementation reads config from the text backend and stuffs everything verbatim in to the registry backend. Michael (cherry picked from commit e41c6650f805eaf8bb009e34468dd2d311e52858)
* libsmbconf: add a text backend to libsmbconf based on the params.c parser.Michael Adam2008-03-273-1/+526
| | | | | | | | | | | | This is a simple implementation of text backend for libsmbconf. It is read only. It uses the parser from params.c. It loads the given config file and holds the parsed lists of strings in memory. Config is only re-read if the time stamp of the config file has changed. Brilliant performance on large files is not to be expected since the string lists are not hashed. This might be added in the future. Michael (cherry picked from commit 4ea50843852b335a9bd4c0535a5b684134ad8326)
* loadparm: add userdata parameter to do_section() and do_parameter().Michael Adam2008-03-272-21/+25
| | | | | | | | The userdata is currently unused. It can be used in the future for passing a context like in samba4 code. Michael (cherry picked from commit 31b31171bd88c41443268d3300c492e2347b9e73)
* smbconf: reformat - fix intentation.Michael Adam2008-03-271-4/+4
| | | | | | | | | This time this won't make me stumble, since there is no magic in indented function headers here - no automatic prototype generation... :-) Michael (cherry picked from commit 6d72fc4373adff01cf6e0e18f78082d1eab90064)
* util_tdb: remove trivial and unused tdb_wipe().Michael Adam2008-03-273-20/+1
| | | | | | | It has been replaced by tdb_wipe_all(). Michael (cherry picked from commit cdde2e4eaca51d51f036ad99d55df7bfd6535b03)
* use tdb_wipe_all() instead of tdb_wipe() - it is faster...Michael Adam2008-03-273-3/+3
| | | | | Michael (cherry picked from commit 3d2fdcd50fdbfb66a14360516836445d47eceeb0)
* util_tdb: make the _byblob fetch/store functions public again.Michael Adam2008-03-272-4/+8
| | | | | | | Users of these are currently being written... Michael (cherry picked from commit 1c51bec5318bad085c09931aa7e8f72f41d103fe)
* util_tdb: add my (C) for the tdb validation codeMichael Adam2008-03-271-0/+1
| | | | | Michael (cherry picked from commit abf02a5a142c55d9e0053d319c867e4fcc3e6c30)
* util_tdb: add a wrapper tdb_wipe() for traverse with tdb_traverse_delete_fn().Michael Adam2008-03-276-8/+13
| | | | | | | | Replace all callers of traverse with this tdb_traverse_delete_fn() and don't export tdb_traverse_delete_fn() anymore. Michael (cherry picked from commit d4be4e30cd8c3bdc303da30e42280f892a45a8c9)
* util_tdb: add the tdb_pack_append() prototype to util_tdb.hMichael Adam2008-03-271-0/+2
| | | | | | | This function is currently not used but seems useful. Michael (cherry picked from commit 48149a954c1e737c9863cfa0991ab9bfc246c6da)
* util_tdb: make the _byblob functions static - not currently used elsewhere.Michael Adam2008-03-271-5/+5
| | | | | Michael (cherry picked from commit b42cf3fc69414270be9d0f430f2e95a72894f00e)
* util_tdb: group prototypes in util_tdb.h thematicallyMichael Adam2008-03-271-13/+20
| | | | | Michael (cherry picked from commit 4b9231d33eaea2ada5d67cc1d959df2b671e7bb9)
* build: don't autogenerate prototypes for util_tdb and dbwrap anymore.Michael Adam2008-03-273-2/+41
| | | | | | | | | | | | Stick to hand-written headers (that are there anyways). Add some missing prototypes to util_tdb.h and dbwrap.h. I did not bother to add a header for each single dbwrap backend open function but put the prototypes for the open functions into the central dbwrap.h. Michael (cherry picked from commit edf4dbed27a3c63c04e8110e75cdb76e31627eb6)
* registry: add reg_init_basic() - init registry with only the db backend.Michael Adam2008-03-271-0/+45
| | | | | Michael (cherry picked from commit 1831042bdcbfe569ae39177058dfe1d914416513)
* registry: close registry in exit path in registry_init_smbconf().Michael Adam2008-03-271-2/+1
| | | | | Michael (cherry picked from commit 5aa3141bff35a85dd97e9fd339e19b0fe3a73afc)
* registry: some whitespace cleanup in init_registry().Michael Adam2008-03-271-9/+10
| | | | | Michael (cherry picked from commit f33095e44ba22f4451a5deeffdd4f9ed3f99ed85)
* registry: remove unneeded talloc stackframe variable.Michael Adam2008-03-271-2/+0
| | | | | Michael (cherry picked from commit 81993db828bf11b13d7ee1f43483968dc6241bcc)
* registry: close regdb in error path (and use it) in init_registry().Michael Adam2008-03-271-4/+3
| | | | | Michael (cherry picked from commit 73b325fe7a9d7fd67ac9b99144a3776f5a1a9e15)
* registry: fix registry_init_smbconf() to close the registry at the end.Michael Adam2008-03-272-2/+2
| | | | | Michael (cherry picked from commit f4d87fdbf266a36fbb50dae863ee0784165c2fe1)
* libsmbconf: add internal open/close handling to registry backend.Michael Adam2008-03-271-4/+38
| | | | | | | | | | | This internally keeps track of opened registry in the private data struct. The first call that really accesses data, opens the registry and it is kept open until the destructor is called. This behaviour might be changed in the future. Michael (cherry picked from commit 03e72e13076e3215eb8ae51cfb4e7cd3d3683d3e)
* libsmbconf: add a comment.Michael Adam2008-03-271-0/+3
| | | | | Michael (cherry picked from commit 513ae78ef78d3ddcb155f9c38b9a0c82809e0998)
* libsmbconf: add private_data section to smbconf_ctx.Michael Adam2008-03-272-8/+20
| | | | | | | | | | This private data should be used by backends. The token for the registry backend is moved from the context to the private data section, since this is registry specific. Michael (cherry picked from commit a02163356bdd0c17a25a45e9904f8bd1e1c4bee4)
* libsmbconf: add a "path" variable to the conf context.Michael Adam2008-03-278-20/+32
| | | | | | | | | | | | | | This is passed to the module init routines. In case of the registry, this is the path of the basekey in registry, that is to be used, defaulting to KEY_SMBCONF (HKLM\software\samba\smbconf), when NULL is given. This is the only case currently used. In order to support other keys, registry initialization for smbconf has to be changed to support different keys. Michael (cherry picked from commit 96434d9dc7a66773e313cc128af57493dee245a1)
* libsmbconf: add structuring comments to the prototypes in the public header.Michael Adam2008-03-271-0/+8
| | | | | Michael (cherry picked from commit 4f816df27670c3b6aabea9f26ef2d26f3e882e78)
* libsmbconf: adapt a comment to new circumstancesMichael Adam2008-03-271-3/+1
| | | | | Michael (cherry picked from commit 83b9453c88bfdf615cc2b547645b0a71a870f473)
* libsmbconf: group together functions in smbconf.c more appropriatelyMichael Adam2008-03-271-21/+29
| | | | | Michael (cherry picked from commit e8ed8ad077f69ae7237f49b150625d20eb509586)
* libsmbconf: add a comment.Michael Adam2008-03-271-1/+5
| | | | | Michael (cherry picked from commit 8974b283683799bc51223d27b7e6aecac741fbc2)
* libsmbconf: move registry implementation to a module of its own.Michael Adam2008-03-274-722/+755
| | | | | Michael (cherry picked from commit 431b10bfe0dba0a49e50bebfb3f8ad1a00955837)
* libsmbconf: reformaat - fix some whispacing/tabsMichael Adam2008-03-271-7/+7
| | | | | Michael (cherry picked from commit 1a5e5bf38f409b10c8b1da6227722c7d3976b175)