summaryrefslogtreecommitdiffstats
path: root/source/lib/replace
Commit message (Collapse)AuthorAgeFilesLines
* using NGROUPS_MAX instead of 32 for the max group value in rep_initgroups() ↵Yannick Bergeron2008-08-111-1/+1
| | | | | | subroutine in lib/replace/replace.c (cherry picked from commit 6d6b205e444154e1bd2993d964eff4cf532bacd8)
* Solve an IBM XL C/C++ compiler error encountered in get_exit_code() ↵Yannick Bergeron2008-08-111-1/+2
| | | | | | auth_errors array initialization in client/smbspool.c (cherry picked from commit f6ffc95a363d3ed8aa480ac25e440d2472551891)
* Fix typo.Karolin Seeger2008-07-141-1/+1
| | | | | | | | retieve -> retrieve Karolin (cherry picked from commit 37c64130701ab13b6f34998ac17fec2d128c2e08) (cherry picked from commit cacd84b86d14740ebb5e285d5882063aea5cd866)
* Fix bug #5578, reported by sendel2000@hotbox.ru. Bad (non-Samba) use of ↵Jeremy Allison2008-07-061-0/+3
| | | | | | | strlcat gives error. Jeremy. (cherry picked from commit a93c7a2170124f24aac4063c853475ae3f6b0720)
* Correctly find a [u]int32_t replacementVolker Lendecke2008-06-111-6/+15
| | | | (cherry picked from commit 346375cda557a675f8f882ca2ae8edffec725a72)
* libreplace: only include AC_USE_SYSTEM_EXTENSIONS fallback if requiredStefan Metzmacher2008-06-091-1/+2
| | | | | | | | | This fixes ./autogen.sh with autoconf-2.62 metze (cherry picked from commit 72bb01dda4d425528e28cd96e249595dc6c1952f) (cherry picked from commit 85111dc2b60ca38027adf129a074641c752cb104) (cherry picked from commit 24f0c35571b26187c13af933604fe40afed1da34)
* libreplace: fix warnings with autoconf-2.62 rename ac_ => libreplace_cv_Stefan Metzmacher2008-06-091-4/+4
| | | | | | | | | AC_CACHE_VAL() variables must contain _cv_ to be cached. metze (cherry picked from commit 67e43860b4973a458676b36785570bb4a66e046a) (cherry picked from commit d786bfc48e20ed7e695a988da6ed56a573afdadc) (cherry picked from commit c402acd63a31bace402b361760a7d73f95db3717)
* libreplace: we need to use AC_TRY_LINK() to make sure HAVE_IPV6 is correctly ↵Stefan Metzmacher2008-05-221-1/+1
| | | | | | | | detected metze (cherry picked from commit 84b5652d3e5766521436e4c7d59615b08b2bb198) (cherry picked from commit f7e0bff88a23be0e7cbbd7eab60ed49bcdda04fa)
* libreplace: add test for HAVE_IPV6Stefan Metzmacher2008-05-221-0/+29
| | | | | | | | Samba can later just check libreplace_cv_HAVE_IPV6 = yes. metze (cherry picked from commit e835e7eebcc064ce0813814796828f15ad112fbd) (cherry picked from commit 757071e59e4c1be0971b68d33833c621ed6bf361)
* lib/replace: move sys/sockio.h and sys/un.h checks into ↵Stefan Metzmacher2008-05-222-1/+1
| | | | | | | | AC_LIBREPLACE_NETWORK_CHECKS metze (cherry picked from commit 7f26a5425e706a97cc07c5139b3fea4fde9e4020) (cherry picked from commit 4bb7873cf0ddc8832fa94baeb6a817e4783e30f4)
* lib/replace: add checks for HAVE_SOCK_SIN_LEN and HAVE_UNIXSOCKETStefan Metzmacher2008-05-221-0/+40
| | | | | | | | Moved from the samba specific locations metze (cherry picked from commit e674128ee2f11596f358ed46104c9d25eb2f754f) (cherry picked from commit c403965f5723177b42f393df20a29b07dceae1cb)
* libreplace: try to fix the build on HP-UX which has if_nametoindex() in -lipv6Stefan Metzmacher2008-05-221-0/+13
| | | | | | metze (cherry picked from commit da2179ee5d5b6094ab63a9d9d6a8d59893937087) (cherry picked from commit 9f931829aaeda8004e7ee3b8b2ac9ddaab8bffb7)
* libreplace: make sure system/network.h is only used when ↵Stefan Metzmacher2008-05-222-0/+5
| | | | | | | | AC_LIBREPLACE_NETWORK_CHECKS was used metze (cherry picked from commit 3fddd36e119f73a5021370450f9687ef9d252bab) (cherry picked from commit 0b26742234467ac1dcfda059e81a35a1cd5e96ed)
* libreplace: export LIBREPLACE_NETWORK_OBJS and LIBREPLACE_NETWORK_LIBS varsStefan Metzmacher2008-05-221-17/+18
| | | | | | metze (cherry picked from commit aa7ef1af746319a3d771decd0ec03dabe8b8ad28) (cherry picked from commit 84daf26558f675fd07e3ac9a699e06801814e393)
* libreplace: include inet_ntoa.o when the system one is brokenStefan Metzmacher2008-05-221-2/+3
| | | | | | metze (cherry picked from commit 67845d3471711d24069636d0d4032f9d53748334) (cherry picked from commit c44c0636ade08751edc7dce4ea0e2a2279aa0eac)
* libreplace: merge getifaddrs.m4 into libreplace_network.m4Stefan Metzmacher2008-05-222-129/+127
| | | | | | metze (cherry picked from commit 0234d397fefee8e1d0dcd3402f748c2251021c90) (cherry picked from commit 3ed6f285eca540d6c58aac84c6f50f949519b742)
* libreplace: merge getaddrinfo.m4 into libreplace_network.m4Stefan Metzmacher2008-05-222-33/+33
| | | | | | metze (cherry picked from commit 64591d064dc3da6074f0f7539911a6e433d9cc43) (cherry picked from commit c5df0a4faffdd16c3fb3ecdc5720842d6fe49e55)
* libreplace: merge socketpair.m4 into libreplace_network.m4Stefan Metzmacher2008-05-222-2/+2
| | | | | | metze (cherry picked from commit f9f8f93adcc7161ebb18f5a0bf28c73d951a15ad) (cherry picked from commit 3adda27f3eecb5ea027c35e974e3b6bb5fe3b83e)
* libreplace: merge inet_pton.m4 into libreplace_network.m4Stefan Metzmacher2008-05-222-2/+2
| | | | | | metze (cherry picked from commit 3a70274c908e31453942b442351eab8423c1a53d) (cherry picked from commit 784b37987c51806b225371ea1f1bdc416de3dfd1)
* libreplace: merge inet_ntop.m4 into libreplace_network.m4Stefan Metzmacher2008-05-222-2/+2
| | | | | | metze (cherry picked from commit 223ef6c08efb52251d0a772bb0c481b2803cf0ce) (cherry picked from commit 97483e2830971d34ef0775159bfd07402e3d284e)
* libreplace: merge inet_aton.m4 into libreplace_network.m4Stefan Metzmacher2008-05-222-2/+2
| | | | | | metze (cherry picked from commit fba00736c870f449c0eee32fe0d7b0d539dca51f) (cherry picked from commit b90a6c5cbf2912c9cc2961de4efc880502a3441e)
* libreplace: merge inet_ntoa.m4 into libreplace_network.m4Stefan Metzmacher2008-05-222-20/+20
| | | | | | metze (cherry picked from commit 82e826253b6d18832931dbb5c1dda009889bf9e0) (cherry picked from commit 66126edaf425ccdfc5bed90252493235878d4fc1)
* libreplace: merge socket.m4 into libreplace_network.m4Stefan Metzmacher2008-05-222-40/+40
| | | | | | metze (cherry picked from commit c70eba87dbbac6c2c1e68c343cdd410577c1686f) (cherry picked from commit 236ce0ac6f949c2dd42f5df06e39af69b779d61e)
* Fix typo.Jelmer Vernooij2008-05-221-1/+0
| | | | | (cherry picked from commit bd089818a3182698dfe85039c1b2e22d8c2835bb) (cherry picked from commit 7a3cb33c6d9d14907777f55abd6421bab89b34b2)
* Add undefined symbol flag for AIX.William Jojo2008-05-221-0/+4
| | | | | (cherry picked from commit dabdf24e86f038e3afc67532fa5bf60a37992161) (cherry picked from commit fdf2a94583949150fd426f44cd33265fc6fd9d6e)
* libreplace: also use AC_LIBREPLACE_NETWORK_CHECKS for the standalone buildStefan Metzmacher2008-05-221-0/+1
| | | | | | metze (cherry picked from commit 04f4523ed032946b8f0e74ac6f7458010159e3bb) (cherry picked from commit f7d298760d9822d7a437507a49f2140352212411)
* libreplace: use AC_LIBREPLACE_NETWORK_CHECKS only for sambaStefan Metzmacher2008-05-222-1/+1
| | | | | | metze (cherry picked from commit 3451b54bf7f5e37a589ec261d28c2a8b6f9788ed) (cherry picked from commit a004b38a953d64e77b58bdb99d0af946e2cae2cf)
* libreplace: split out network checks into a AC_LIBREPLACE_NETWORK_CHECKS macroStefan Metzmacher2008-05-222-63/+73
| | | | | | | | Note: moving it out of AC_LIBREPLACE_BROKEN_CHECKS will be the next step metze (cherry picked from commit 55a904b1d7aeca849d450e371b18afca5b0c6218) (cherry picked from commit a7969f94f854594dbe6ef3ff630e242d27ad618e)
* libreplace: always provide utime() and utimes()Stefan Metzmacher2008-05-226-1/+200
| | | | | | | | | | | | I'd like to also provide futimes(), but it seems that some systems doesn't support a it at kernel level. If someone knows how to write a portable replacement for futimes() please tell me... metze (cherry picked from commit a9604fe4a323dccb537cf02ea7594437b4995803) (cherry picked from commit cde0db60402a69a05dea51b5b8f01789e93406e7)
* libreplace: check how portable utimes() and futimes() areStefan Metzmacher2008-05-221-0/+1
| | | | | | metze (cherry picked from commit 8798ce3c744025b94973784dcb44d099427ef190) (cherry picked from commit 1c01674624db5a2dae3afe9ba213a69c2ee2efda)
* Fix replacement getpass. If we ^C at the prompt echo was left off.Jeremy Allison2008-05-131-5/+2
| | | | | | Fix bug #5456. Karolin please pull for 3.2-stable. Jeremy. (cherry picked from commit 726d9d168d5b4bca86b478c34204eacb97907443)
* Janitor for tridge. Keep lib/replace in sync with the gcc4Jeremy Allison2008-04-233-3/+4
| | | | | | changes. Jeremy. (cherry picked from commit b496f133228b74bf613dab81167a5b9670511c51)
* libreplace(samba4): let LIBREPLACE depend on LIBREPLACE_NETWORK for nowStefan Metzmacher2008-04-131-1/+1
| | | | | | | | | This should fix the build on solaris. Later this needs better fixing... metze (cherry picked from commit 89b7955733c34e9699a3b43ee54de92cb9469b90) (cherry picked from commit fcb497951a86551ce9c4be7b352335dad3be127a)
* libreplace: replace.c does not need system/network.h anymore.Michael Adam2008-04-131-1/+0
| | | | | | Michael (cherry picked from commit 2d3c2f34f33338ff422047dae9cc262522689328) (cherry picked from commit 03a980d8f67ee1516c357807c23a405f07a006b3)
* libreplace: move rep_socketpair() to its own module.Michael Adam2008-04-136-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) (cherry picked from commit 6c53753246b8108fe1277b34958e122bd800c4e7)
* libreplace: remove duplicate entry of inet_ntoa from README.Michael Adam2008-04-131-1/+0
| | | | | | Michael (cherry picked from commit 98ee8c84300757d778733a458c6ca3e6022b40ea) (cherry picked from commit a4f22d6e2b3fc198327deabf4a724cd476e4144c)
* libreplace: remove trailing white spaces.Michael Adam2008-04-132-2/+2
| | | | | | Michael (cherry picked from commit 1f9ca7eed965904f67cf78fbac007432b8a057fd) (cherry picked from commit a1d24f110b3edff636174e017eb56ba5b10df590)
* libreplace: replace inet_ntoa() when it is missingMichael Adam2008-04-136-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) (cherry picked from commit edcf2712bcdedabbfdd9ee8b9a18f46126930636)
* libreplace: put inet_aton.c under LGPL instead of GPL.Michael Adam2008-04-131-9/+13
| | | | | | Michael (cherry picked from commit cca5d6626fe395f08fd4c8b2344e4e43646cb987) (cherry picked from commit f69e51f56f111d9bd5db69e191f45567aacf8c3d)
* libreplace: remove unused SOCKET_LIBS and NSL_LIBSStefan Metzmacher2008-04-131-3/+0
| | | | | | metze (cherry picked from commit 62bb177a6e4a3e1f949b78c7cd7583f2e1271739) (cherry picked from commit f27d5e0cf80c49d81091a385cbfd0801b5483825)
* libreplace: for samba4 create LIBREPLACE_NETWORK as EXT_LIBStefan Metzmacher2008-04-131-0/+3
| | | | | | metze (cherry picked from commit 79037c31334e271a718fcac234148038814b591e) (cherry picked from commit b141fce01dd40b25cce52852cd93f0f907c3b008)
* libreplace: use LIBREPLACE_NETWORK_LIBS within some configure checksStefan Metzmacher2008-04-132-3/+3
| | | | | | | | ...instead of using SOCKET_LIBS and NSL_LIBS. metze (cherry picked from commit cef2e8d748756f61c248ad6660e85dd1ac36308a) (cherry picked from commit 7854ed24a57162fa7569d8f36633f3c156067b0b)
* libreplace: combine SOCKET_LIBS and NSL_LIBS to LIBREPLACE_NETWORK_LIBSStefan Metzmacher2008-04-131-7/+9
| | | | | | | | But keep the old ones untill the callers are fixed. metze (cherry picked from commit e7115dcc8a0a4f420de7a901e3a21d4f35a6fcf9) (cherry picked from commit 2dee62ed12910a4d22381677bcf884dca0d999ea)
* libreplace: fix samba4 build (by not setting global LIBS).Michael Adam2008-04-132-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) (cherry picked from commit 2546da817f666914c1c220ec1fedc19aa41b25ad)
* libreplace: add -I$libreplacedir to CPPFLAGS for getifaddrs tests.Michael Adam2008-04-131-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) (cherry picked from commit ddd564e8bf2b115aa5dbcbebd4be30b749ad8752)
* libreplace: add an inet_aton() function that calls inet_pton().Michael Adam2008-04-136-0/+42
| | | | | | | | | inet_aton() is even needed inside libreplace, in the implementation of rep_getaddrinfo(). Michael (cherry picked from commit bcb2f3a880f8da8f9bedb7a8e61d7d7b533f1919) (cherry picked from commit 83baff78ce752a9129554a456cc24d043d419cd1)
* libreplace: fix coverity ID 517 - untangle close from open in test/os2_delete.cMichael Adam2008-04-101-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 (cherry picked from commit 451fc9ae05f841883081a334e179cf31625a772c)
* Fix Coverity ID 554Volker Lendecke2008-03-181-0/+3
| | | | (cherry picked from commit 471b1b0c58bc2def5d2fe9d98401def34724d447)
* Allocate one 0-byte in asprintf replacement when len==0Volker Lendecke2008-03-181-1/+1
| | | | | Some S3 code depends on this. (cherry picked from commit dc3d5e16452bf30055638ba3cfe99097fb557156)
* libreplace: add snprintf.c to test code for getifaddrs - needed on some systems.Michael Adam2008-02-291-0/+4
| | | | | Michael (cherry picked from commit 0aff54a12e20d5e91fcdec7aaec103fb9a371a23)