summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2008-03-21libsmbconf: fix a commentMichael Adam1-2/+1
Michael (This used to be commit e6b60f6cad32ce8bb78abb070889dde3eca2d268)
2008-03-19libreplace: replace.c does not need system/network.h anymore.Michael Adam1-1/+0
Michael (cherry picked from commit 2d3c2f34f33338ff422047dae9cc262522689328) (This used to be commit 03a980d8f67ee1516c357807c23a405f07a006b3)
2008-03-19libreplace: move rep_socketpair() to its own module.Michael Adam6-24/+55
Prototype is now in system/network.h, implementation in socketpair.c, and check in socketpair.m4. Now the last networking function has vanished from replace.c. Michael (cherry picked from commit 94ac8a25be15b55f66eff96fdddc2fdc71a43b1e) (This used to be commit 6c53753246b8108fe1277b34958e122bd800c4e7)
2008-03-18libreplace: remove duplicate entry of inet_ntoa from README.Michael Adam1-1/+0
Michael (cherry picked from commit 98ee8c84300757d778733a458c6ca3e6022b40ea) (This used to be commit a4f22d6e2b3fc198327deabf4a724cd476e4144c)
2008-03-18libreplace: remove trailing white spaces.Michael Adam2-2/+2
Michael (cherry picked from commit 1f9ca7eed965904f67cf78fbac007432b8a057fd) (This used to be commit a1d24f110b3edff636174e017eb56ba5b10df590)
2008-03-18libreplace: replace inet_ntoa() when it is missingMichael Adam6-34/+61
...not only replace it when it is broken. This moves the defintion of rep_inet_ntoa from replace.c to inet_ntoa.c and adds configure checks for existence of inet_ntoa(). Checks are moved to an include file of its own. NOTE: The original rep_inet_ntoa in replace.c was wrapped into a "#ifndef WITH_PTHREADS" but the prototype in replace.h and the define in system/network.h were not. I removed that ifndef since the inet_ntoa() function is usually not thread safe anyways, since it returns a pointer to a static buffer. So whoever calls inet_ntoa() should be aware that it is not thread safe anyways. Michael (cherry picked from commit 974c0c45ad42644348e0b55454715b12158f1028) (This used to be commit edcf2712bcdedabbfdd9ee8b9a18f46126930636)
2008-03-18libreplace: put inet_aton.c under LGPL instead of GPL.Michael Adam1-9/+13
Michael (cherry picked from commit cca5d6626fe395f08fd4c8b2344e4e43646cb987) (This used to be commit f69e51f56f111d9bd5db69e191f45567aacf8c3d)
2008-03-18libreplace: remove unused SOCKET_LIBS and NSL_LIBSStefan Metzmacher1-3/+0
metze (cherry picked from commit 62bb177a6e4a3e1f949b78c7cd7583f2e1271739) (This used to be commit f27d5e0cf80c49d81091a385cbfd0801b5483825)
2008-03-18libreplace: for samba4 create LIBREPLACE_NETWORK as EXT_LIBStefan Metzmacher1-0/+3
metze (cherry picked from commit 79037c31334e271a718fcac234148038814b591e) (This used to be commit b141fce01dd40b25cce52852cd93f0f907c3b008)
2008-03-18libreplace: use LIBREPLACE_NETWORK_LIBS within some configure checksStefan Metzmacher2-3/+3
...instead of using SOCKET_LIBS and NSL_LIBS. metze (cherry picked from commit cef2e8d748756f61c248ad6660e85dd1ac36308a) (This used to be commit 7854ed24a57162fa7569d8f36633f3c156067b0b)
2008-03-18libreplace: combine SOCKET_LIBS and NSL_LIBS to LIBREPLACE_NETWORK_LIBSStefan Metzmacher1-7/+9
But keep the old ones untill the callers are fixed. metze (cherry picked from commit e7115dcc8a0a4f420de7a901e3a21d4f35a6fcf9) (This used to be commit 2dee62ed12910a4d22381677bcf884dca0d999ea)
2008-03-18Fix bug 5334Volker Lendecke1-0/+30
I did not test with a zero length file :-) (This used to be commit 7d7a73944c2dcf078f7bc8de65d575f32f9aa851)
2008-03-17Coverity fixesMarc VanHeyningen1-1/+1
(This used to be commit 3fc85d22590550f0539215d020e4411bf5b14363)
2008-03-17libsmbconf: rename all occurrences of libnet_conf_ to smbconf_ .Michael Adam3-200/+186
Michael (This used to be commit 097af0309d7c3e9342058ba5266667293b23c80d)
2008-03-17Move libnet_conf to a library lib/smbconf/ of its own, fixing the api.Michael Adam2-0/+1048
The libnet_conf code to access the registry based configuration has become more of a library used in several places in samba (e.g. loadparm) than an abstraction of "net conf". So I move it to a location lib/smbconf/. In the same breath, the api is fixed (not generated by make proto anymore). Michael (This used to be commit 5315ef41f403b96715dd68b512e9e74662e2910a)
2008-03-17socket_wrapper: make pcap code more portableStefan Metzmacher1-39/+40
Now the pcap support works on x86_64. metze (cherry picked from commit 61a87bed61ef661d98131239976be95c6a8b4d96) (This used to be commit c22204aa85d4bb33534b6974dcfed9aad0c28cc4)
2008-03-17Use right control to attach to persistent databasesVolker Lendecke1-2/+5
This is a merge of 2a8f8b26f08ab09c34dff82417e541d8eb1ec91c and 4e6508dfee0d872a7fa42c9e58ba565137a27b3f from 3-0-ctdb (This used to be commit 46e50da0d550e43de3aaf0141c64f25e1c9997c2)
2008-03-16Fix Coverity ID 567Volker Lendecke1-1/+1
Jeremy, please push it if you like it and mark the bug as fixed on the Coverity site. Thanks, Volker (This used to be commit 2fd25423700cb60f20a8b8d6613279cb06fb518d)
2008-03-15Fix Coverity ID 554Volker Lendecke1-0/+3
(This used to be commit 471b1b0c58bc2def5d2fe9d98401def34724d447)
2008-03-15Allocate one 0-byte in asprintf replacement when len==0Volker Lendecke1-1/+1
Some S3 code depends on this. (This used to be commit dc3d5e16452bf30055638ba3cfe99097fb557156)
2008-03-14libreplace: fix samba4 build (by not setting global LIBS).Michael Adam2-3/+3
This corrects the earlier fix of the standalone build, by setting LIBS to the desired value only in configure.ac but not in getifaddrs.m4. Not that this changes the standalone build in that it adds these libs undconditionally and not only if they are needed by the getifaddrs replacement functions. Michael (cherry picked from commit ff3af1703ddc9e5383f32156bc5be8351f795e76) (This used to be commit 2546da817f666914c1c220ec1fedc19aa41b25ad)
2008-03-14libreplace: add -I$libreplacedir to CPPFLAGS for getifaddrs tests.Michael Adam1-0/+4
This is needed, otherwise $libreplacedir/system/network.h does not find $libreplacedir/getaddrinfo.h on some systems (solaris, e.g.). Michael (cherry picked from commit 297c3bece094ddb5f268b02e61e33f512ccfe6f5) (This used to be commit ddd564e8bf2b115aa5dbcbebd4be30b749ad8752)
2008-03-14libreplace: add an inet_aton() function that calls inet_pton().Michael Adam6-0/+42
inet_aton() is even needed inside libreplace, in the implementation of rep_getaddrinfo(). Michael (cherry picked from commit bcb2f3a880f8da8f9bedb7a8e61d7d7b533f1919) (This used to be commit 83baff78ce752a9129554a456cc24d043d419cd1)
2008-03-13Allow parameter "include" in registry based configuration (again).Michael Adam1-1/+0
This is for instance important to allow includes with %I to setup individual logging (e.g.) for certain clients. Michael (This used to be commit 8dad80b4719691d66827ed46bebb963c0f8ba568)
2008-03-13Fix %I macro expansion for IPv4 mapped IPv6 addresses.Michael Adam1-2/+8
On some systems (linux e.g.), when listening on ipv6 and ipv4, addresses of ipv4 clients are printed as mapped ipv4 addresses by getnameinfo (e.g. ::ffff:127.0.0.1). This re-establishes the original behaviour of %I to expand to the plain ipv4 address for an ipv4 client. Michael (This used to be commit 0abc8863f87fe5d2473492797c010784cb086008)
2008-03-10Use a separate tdb for mutexesVolker Lendecke1-17/+40
Another preparation to convert secrets.c to dbwrap: The dbwrap API does not provide a sane tdb_lock_with_timeout abstraction. In the clustered case the DC mutex is needed per-node anyway, so it is perfectly fine to use a local mutex only. (This used to be commit f94a63cd8f94490780ad9331da229c0bcb2ca5d6)
2008-03-10Add dbwrap_trans_store and dbwrap_trans_deleteVolker Lendecke1-0/+79
(This used to be commit e66e502bee65fe44944d325ebeeaa3bf56169eb8)
2008-03-10Add transactions to the dbwrap APIVolker Lendecke3-0/+45
Only filled in for tdb so far, for rbt it's pointless, and ctdb itself needs to be extended (This used to be commit 0a55e018dd68af06d84332d54148bbfb0b510b22)
2008-03-10add dbwrap_change_int32_atomicVolker Lendecke1-0/+28
(This used to be commit 4ee21a98bc3d1c41a6d8868e98118c58372b2d1a)
2008-03-07Enable libnetjoin debugging for now but avoid printing passwords.Günther Deschner1-0/+1
The gen_ndr needs proper fixing still. Guenther (This used to be commit 966d7244d7765d285a7026b97e6093fd1f8d83ce)
2008-03-06client[ADDR_INDEX] is an IPv4 mapped to IPv6, butJeremy Allison1-5/+21
the list item is not. Try and match the IPv4 part of address only. This will happen a lot on IPv6 enabled systems with IPv4 allow/deny lists in smb.conf. Bug #5311. Jeremy. (This used to be commit 7c3550f82c51ce173b13e568762f728ecb881e85)
2008-03-06Add basic infrastructure for general async requestsVolker Lendecke1-0/+68
(This used to be commit 9f8b2a87ee8bba930b776dcfda608a5639f6d55a)
2008-03-06In libnetapi, point out that lp_load has failed.Günther Deschner1-0/+1
Guenther (This used to be commit be673bfc61559f661040c6fb1ba7d2e4552967f2)
2008-03-05Give a better error message why NetServerSetInfo() may fail in the gui.Günther Deschner2-1/+4
Guenther (This used to be commit 1bbbebb7767b8a25532e8be3dbd274c211e34bbd)
2008-03-05Add PICFLAG to libnetapi Makefile.Günther Deschner1-0/+1
Guenther (This used to be commit 29fca3c0353f2be4577613d7e38fbc51d2a370fa)
2008-03-05Fix rpccli_srvsvc_NetSrvSetInfo call in libnetapi.Günther Deschner1-1/+1
Guenther (This used to be commit 5911529205ca69c438e0782c07ee4fe5aa95de62)
2008-03-01Revert "Add basic infrastructure for general async requests"Volker Lendecke1-68/+0
This reverts commit ae254cb61f4b9331755848c47ebc34e90dd80390. (This used to be commit 030bef7f22f7a73466204b7860f397dbca9f2ab0)
2008-02-29Add gp_get_machine_token().Günther Deschner1-0/+50
Guenther (This used to be commit 2f1bc7ddad97b9137ae4cce696bf4e08f9b7ca20)
2008-02-29Revert "what a wurst."Günther Deschner1-50/+0
That commit message was just too silly, this happens to me during interactive rebase all the time... This reverts commit ab687104c1371c84c510eca7ef2caad7c21ea8fc. (This used to be commit a3a1edab0d5ac07d42e64a5a82dd71fe0c3fdfeb)
2008-02-29what a wurst.Günther Deschner1-0/+50
(This used to be commit ab687104c1371c84c510eca7ef2caad7c21ea8fc)
2008-02-29Eliminate tons of build warnings on non-IPV6 system.Michael Adam1-1/+1
Michael (This used to be commit ee4810099c2d26a0ebab3c41a95bc6b57921683d)
2008-02-29configure: Remove lib/repdir.c and related stuffStefan Metzmacher1-217/+0
It was only used in configure, but lib/replace already has a much better version of it. metze (This used to be commit c9b60b75b4763c37cfa63741b4f055e4ea488e92)
2008-02-29libreplace: add snprintf.c to test code for getifaddrs - needed on some systems.Michael Adam1-0/+4
Michael (cherry picked from commit 0aff54a12e20d5e91fcdec7aaec103fb9a371a23) (This used to be commit 77b7d7c0417e498340d1c9364fbbb8671c175477)
2008-02-29libreplace: ifdef out ip6 code if unsupported.Michael Adam1-0/+2
Michael (cherry picked from commit 54cc0df4dbf6d63a9b94e1ac6af4ec7f7803bc30) (This used to be commit 1ff0b616a9cb029040031f797b52112d4973e1eb)
2008-02-29libreplace: fix rep_freeifaddrs to not segfault on NULL input.Michael Adam1-6/+7
Michael (cherry picked from commit 0cbb87453beb52c6b0bc3a48791f49678f4030c5) (This used to be commit 34d906ef44d1a5c3452097a9cac438d721fe35c1)
2008-02-29libreplace: fix silly crashbug in getifaddrs_test().Michael Adam1-1/+3
Michael (cherry picked from commit 523626908d25f974fd1ae6d7306b1d4bc8414162) (This used to be commit 0906120a6e4fe0eb66f3c3fd99c625b30672cb2b)
2008-02-29libreplace: add missing newline in output of getifaddrs test.Michael Adam1-1/+1
Michael (cherry picked from commit f8243cfc47c7414bab7f249d0e5d1c85e8ca7d64) (This used to be commit 3c1843f931b896dd3bb142346ecb44c0fb9202d6)
2008-02-29libreplace: add missing semicolon to getifaddrs.Michael Adam1-1/+1
Michael (cherry picked from commit 29818a07de826fd687003ff25865d77939ecaa9a) (This used to be commit 1d906d346ed90b87895772a64c7613324ef8b682)
2008-02-29libreplace: try and fix rep_getifaddrs() for Tru64.Michael Adam1-21/+16
Don't fail when there is no address assigned to the interface. Put NULL into the ifaddrs structure instead. Michael (cherry picked from commit ee170c85e0e76411bd752de5fe51db6940dab929) (This used to be commit 650cc1da4b4404880389c583dbb07ce86df48576)
2008-02-29libreplace: use the new getifaddrs test also for autoconf.Michael Adam2-33/+16
Michael (cherry picked from commit a2a506ff0eae2a64ebe2ddbb81a6c2a5fa7fe3da) (This used to be commit c5932414fdf0b568cbfe6cdefaec41c8afc8ca6b)