summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2008-03-31Patch from Nicholas Brealey <nick@brealey.org> to distinguish between WinXP ↵Gerald W. Carter1-1/+4
and WinXP64. Defines a new value for the %a variable when detecting a Windows XP 64-bit client. (This used to be commit 0c94918fb52c5345ce30490046b79f81712c30bf)
2008-03-28Add a talloc context parameter to current_timestring() to fix memleaks.Michael Adam3-15/+23
current_timestring used to return a string talloced to talloc_tos(). When called by DEBUG from a TALLOC_FREE, this produced messages "no talloc stackframe around, leaking memory". For example when used from net conf. This also adds a temporary talloc context to alloc_sub_basic(). For this purpose, the exit strategy is slightly altered: a common exit point is used for success and failure. Michael (This used to be commit 16b5800d4e3a8b88bac67b2550d14e0aaaa302a9)
2008-03-28libreplace(samba4): let LIBREPLACE depend on LIBREPLACE_NETWORK for nowStefan Metzmacher1-1/+1
This should fix the build on solaris. Later this needs better fixing... metze (cherry picked from commit 89b7955733c34e9699a3b43ee54de92cb9469b90) (This used to be commit fcb497951a86551ce9c4be7b352335dad3be127a)
2008-03-28Fix a memory leakVolker Lendecke1-0/+2
(This used to be commit ce1bd43cdae63ff05aefaded419388e7b9e3ba9a)
2008-03-27dbwrap: fix dbwrap_trans_[delete|store]() to stop when transaction_start() ↵Michael Adam1-0/+2
failed. Michael (This used to be commit ab0aaed907fef233998ff0841d30eabef3263ee8)
2008-03-27dbwrap: add db_open_trans()Stefan Metzmacher1-0/+15
This should be used when transactions are wanted. For now it's just a wrapper of db_open(), but this will change. metze Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be commit 74a070b8a24fea1009e557f711b76fc14e8961dc)
2008-03-27dbwrap: add dbwrap_trans_store_int32()Stefan Metzmacher1-0/+15
metze Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be commit f05e889bc05a816aef5b9ce4f22267e977dade01)
2008-03-27libreplace: fix coverity ID 517 - untangle close from open in test/os2_delete.cMichael Adam1-1/+8
This is not a proper bug but the code is clearer now and we are tracking failure of open separate from that of close. Michael (This used to be commit 451fc9ae05f841883081a334e179cf31625a772c)
2008-03-27libsmbconf: text - pass the cache instead of all private data to pm_process.Michael Adam1-40/+40
Michael (This used to be commit ee46f0eca6ea21d0c51103252fecf911bb448687)
2008-03-27libsmbconf: text - change the cache to be tallocedMichael Adam1-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 (This used to be commit 03efb72b4632e2bbb0838ca56a3e556448bda5c5)
2008-03-27libsmbconf: in text backend, put flushing of the cache into a helper function.Michael Adam1-6/+12
And use it also in the close operation. Michael (This used to be commit 8cb288124993eb59459e7e9777c65e58c0554d55)
2008-03-26Fix a bug in the output from print_canonical_sockaddr() fix from ↵Gerald W. Carter1-2/+8
36f8bafbd3dee66a8.... Make sure that IPv4 addresses are not enclised in []'s. (This used to be commit 4ddf58dbdc3d74cb72788ef4a2ec7587d4948c40)
2008-03-26libsmbconf: add a text backend to libsmbconf based on the params.c parser.Michael Adam2-0/+524
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 (This used to be commit 4ea50843852b335a9bd4c0535a5b684134ad8326)
2008-03-26smbconf: reformat - fix intentation.Michael Adam1-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 (This used to be commit 6d72fc4373adff01cf6e0e18f78082d1eab90064)
2008-03-26util_tdb: remove trivial and unused tdb_wipe().Michael Adam1-17/+0
It has been replaced by tdb_wipe_all(). Michael (This used to be commit cdde2e4eaca51d51f036ad99d55df7bfd6535b03)
2008-03-26use tdb_wipe_all() instead of tdb_wipe() - it is faster...Michael Adam1-1/+1
Michael (This used to be commit 3d2fdcd50fdbfb66a14360516836445d47eceeb0)
2008-03-26util_tdb: make the _byblob fetch/store functions public again.Michael Adam1-4/+4
Users of these are currently being written... Michael (This used to be commit 1c51bec5318bad085c09931aa7e8f72f41d103fe)
2008-03-25util_tdb: add my (C) for the tdb validation codeMichael Adam1-0/+1
Michael (This used to be commit abf02a5a142c55d9e0053d319c867e4fcc3e6c30)
2008-03-25util_tdb: add a wrapper tdb_wipe() for traverse with tdb_traverse_delete_fn().Michael Adam2-3/+9
Replace all callers of traverse with this tdb_traverse_delete_fn() and don't export tdb_traverse_delete_fn() anymore. Michael (This used to be commit d4be4e30cd8c3bdc303da30e42280f892a45a8c9)
2008-03-25util_tdb: make the _byblob functions static - not currently used elsewhere.Michael Adam1-5/+5
Michael (This used to be commit b42cf3fc69414270be9d0f430f2e95a72894f00e)
2008-03-24Ignore port when pulling IP addr from struct sockaddr_storage.Gerald (Jerry) Carter1-34/+10
Linux man page states that getaddinfo() will leave the port uninitialized when passing in NULL for the service name. So we can't really trust that anymore. I doubt non-default KDC ports are an issues so just drop the port from the generated krb5.conf. AIX exhibits this bug the most. (This used to be commit 36f8bafbd3dee66a869aa26cfc2eb4aa62019325)
2008-03-23Fix Coverity ID 472Volker Lendecke1-6/+4
Simo, S4 also has this code. You might want to cherry-pick. Volker (This used to be commit 94c29f55937e50dcf49124d28ad4e82c7fb4133e)
2008-03-23Fix Coverity ID 436Volker Lendecke1-0/+5
(This used to be commit 9e0ee1ad4fe0f0e7dec0b6824ef234147d845b8d)
2008-03-21registry: fix registry_init_smbconf() to close the registry at the end.Michael Adam1-2/+0
Michael (This used to be commit f4d87fdbf266a36fbb50dae863ee0784165c2fe1)
2008-03-21libsmbconf: add internal open/close handling to registry backend.Michael Adam1-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 (This used to be commit 03e72e13076e3215eb8ae51cfb4e7cd3d3683d3e)
2008-03-21libsmbconf: add a comment.Michael Adam1-0/+3
Michael (This used to be commit 513ae78ef78d3ddcb155f9c38b9a0c82809e0998)
2008-03-21libsmbconf: add private_data section to smbconf_ctx.Michael Adam2-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 (This used to be commit a02163356bdd0c17a25a45e9904f8bd1e1c4bee4)
2008-03-21libsmbconf: add a "path" variable to the conf context.Michael Adam5-15/+27
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 (This used to be commit 96434d9dc7a66773e313cc128af57493dee245a1)
2008-03-21libsmbconf: add structuring comments to the prototypes in the public header.Michael Adam1-0/+8
Michael (This used to be commit 4f816df27670c3b6aabea9f26ef2d26f3e882e78)
2008-03-21libsmbconf: adapt a comment to new circumstancesMichael Adam1-3/+1
Michael (This used to be commit 83b9453c88bfdf615cc2b547645b0a71a870f473)
2008-03-21libsmbconf: group together functions in smbconf.c more appropriatelyMichael Adam1-21/+29
Michael (This used to be commit e8ed8ad077f69ae7237f49b150625d20eb509586)
2008-03-21libsmbconf: add a comment.Michael Adam1-1/+5
Michael (This used to be commit 8974b283683799bc51223d27b7e6aecac741fbc2)
2008-03-21libsmbconf: move registry implementation to a module of its own.Michael Adam3-721/+754
Michael (This used to be commit 431b10bfe0dba0a49e50bebfb3f8ad1a00955837)
2008-03-21Fix Coverity ID 473Volker Lendecke1-1/+1
Simo, S4 also has this bug, you might want to merge the fix. (This used to be commit b82cf75c825298444781697072d83a163c43df4b)
2008-03-21Fix Coverity ID 537Volker Lendecke1-3/+3
(This used to be commit b19ea3635ccc1f2c7cd6c7f2d179264fbdce13a7)
2008-03-21Fix Coverity ID 538Volker Lendecke1-3/+3
(This used to be commit d69b8b19aeac2266fb5e5ee280ffffe48a690099)
2008-03-21libsmbconf: reformaat - fix some whispacing/tabsMichael Adam1-7/+7
Michael (This used to be commit 1a5e5bf38f409b10c8b1da6227722c7d3976b175)
2008-03-21libsmbconf: add backend specific init function.Michael Adam4-4/+13
Hide generic init function taking smbconf_ops argument from public api. Michael (This used to be commit b3f6920ccb9a27fde26e889a7f1f3afaf56b784f)
2008-03-21libsmbconf: add shutdown handler to smbconf_ops.Michael Adam2-1/+8
Michael (This used to be commit acbd1f40e0cb4cb5b2ba826c4825edda7ee4937b)
2008-03-21libsmbconf: fix commentsMichael Adam1-2/+1
Michael (This used to be commit 24f32d9bd9aa837d777ea4187bebf3146a67ce59)
2008-03-21libsmbconf: rename smbconf_close() to smbconf_shutdown().Michael Adam3-4/+4
Michael (This used to be commit 797b26ad3fad27e085827efb61f6b4d8b37e93f0)
2008-03-21libsmbconf: rename smbconf_open() to smbconf_init().Michael Adam3-4/+4
That's more appropriate. Michael (This used to be commit d7bd9bb8aa2003ec0a9860df26857f67255febe2)
2008-03-21libsmbconf: add open and close operations to the smbconf_ops.Michael Adam2-1/+15
Note: currently, reg_init_smbconf opens the registry, but does not close it. This has to be changed. so that it is closed. And then libsmbconf will need these open/close functions Michael (This used to be commit 77dbdf82efa60c8a7c00e489c198775b2f66e56c)
2008-03-21libsmbconf: introduce a smbconf_ops layer to allow interchangeable backends.Michael Adam2-14/+64
Michael (This used to be commit a857f643d1558c0fdab4b647695d75223b730b96)
2008-03-21libsmbconf: move smbconf_reg_initialize() down to the smbconf operations.Michael Adam1-20/+20
Michael (This used to be commit f2d605006cd1187f70a044c3356d436e91093d5f)
2008-03-21libsmbconf: add existence check for service to smbconf_delete_share().Michael Adam1-0/+4
Michael (This used to be commit d44c2ef0b7d7bddb4115b596872748132ebd6ddc)
2008-03-21libsmbconf: add existence check for service to smbconf_get_share().Michael Adam1-0/+4
Michael (This used to be commit 26208d3e96a1e257628366709a1d71ac36f0788b)
2008-03-21libsmbconf: add check for NULL servicename to smbconf_share_exists().Michael Adam1-0/+3
Michael (This used to be commit 5dac66c82af8c87df723092a9309304846684418)
2008-03-21libsmbconf: fix a commentMichael Adam1-1/+1
(This used to be commit 103a37ac8e85e9a7b8c2f4eb33e6f1cdbe01d31c)
2008-03-21libsmbconf: refactor out registry implementation of smbconf operations.Michael Adam1-229/+326
This leaves most of the api functions mere wrappers except for some common initial checks. Michael (This used to be commit 9448a7a298e9ed035aa6b86df18f2d41081731cc)