summaryrefslogtreecommitdiffstats
path: root/source4/lib/replace
Commit message (Collapse)AuthorAgeFilesLines
* Make Samba 3 and Samba 4 both use the same single copy of libreplace.Jelmer Vernooij2008-09-1665-14650/+0
|
* using NGROUPS_MAX instead of 32 for the max group value in rep_initgroups() ↵Yannick Bergeron2008-09-141-1/+1
| | | | | | | subroutine in lib/replace/replace.c (cherry picked from commit 13b1a232d2fe05ae3e924ea2503d05ff5084146e) (This used to be commit 0d2fb0e280e497094a4c95f8dca1383ee1cfa982)
* Solve an IBM XL C/C++ compiler error encountered in get_exit_code() ↵Yannick Bergeron2008-09-141-1/+2
| | | | | | | auth_errors array initialization in client/smbspool.c (cherry picked from commit b45e7fabc64e699e4fa013ef15f98a004dae3f32) (This used to be commit 661f8e166118d257ab32a30392cd616db097bc4c)
* Fix typo.Karolin Seeger2008-09-141-1/+1
| | | | | | | | | retieve -> retrieve Karolin (partialy cherry-picked from 37c64130701ab13b6f34998ac17fec2d128c2e08) metze (This used to be commit 4d92e6d582a5b2094b2aaa9008a54b37ccfcc2d7)
* Correctly find a [u]int32_t replacementVolker Lendecke2008-09-141-6/+15
| | | | | | (cherry picked from commit 346375cda557a675f8f882ca2ae8edffec725a72) (cherry picked from commit 15a53945c9563b4517bd8b69a9bb0554eef5edff) (This used to be commit 46c3fc67e91bbdb820e4bddd085933a8570e504c)
* Fix replacement getpass. If we ^C at the prompt echo was left off.Jeremy Allison2008-09-141-5/+2
| | | | | | Jeremy. (cherry picked from commit e54c71954ae484fe4a4e195db33440490e78e256) (This used to be commit d61a86b8cdb4dd474611baadc61a0c37db0f8e62)
* libreplace: include <krb5.h> and <com_err.h> and no heimdal specific headersStefan Metzmacher2008-08-011-2/+3
| | | | | metze (This used to be commit cffed8e19e22a1fa7b7a322b153df5d54e4c3be2)
* Fix bug #5578, reported by sendel2000@hotbox.ru. Bad (non-Samba) use of ↵Jeremy Allison2008-07-021-0/+3
| | | | | | | strlcat gives error. Jeremy. (This used to be commit e633dc4ec2d72c3d34b5e096e0460e07e07ab514)
* libreplace: only include AC_USE_SYSTEM_EXTENSIONS fallback if requiredStefan Metzmacher2008-06-091-1/+2
| | | | | | | This fixes ./autogen.sh with autoconf-2.62 metze (This used to be commit 72bb01dda4d425528e28cd96e249595dc6c1952f)
* 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 (This used to be commit 67e43860b4973a458676b36785570bb4a66e046a)
* Fix extra dash in command line flag.Jelmer Vernooij2008-05-291-1/+1
| | | | (This used to be commit c823cfadb0b20a0782fc4a8a0b63dcb9116f82be)
* libreplace: we need to use AC_TRY_LINK() to make sure HAVE_IPV6 is correctly ↵Stefan Metzmacher2008-05-221-1/+1
| | | | | | | detected metze (This used to be commit 84b5652d3e5766521436e4c7d59615b08b2bb198)
* libreplace: add test for HAVE_IPV6Stefan Metzmacher2008-05-211-0/+29
| | | | | | | Samba can later just check libreplace_cv_HAVE_IPV6 = yes. metze (This used to be commit e835e7eebcc064ce0813814796828f15ad112fbd)
* lib/replace: move sys/sockio.h and sys/un.h checks into ↵Stefan Metzmacher2008-05-162-1/+1
| | | | | | | AC_LIBREPLACE_NETWORK_CHECKS metze (This used to be commit 7f26a5425e706a97cc07c5139b3fea4fde9e4020)
* lib/replace: add checks for HAVE_SOCK_SIN_LEN and HAVE_UNIXSOCKETStefan Metzmacher2008-05-161-0/+40
| | | | | | | Moved from the samba specific locations metze (This used to be commit e674128ee2f11596f358ed46104c9d25eb2f754f)
* libreplace: try to fix the build on HP-UX which has if_nametoindex() in -lipv6Stefan Metzmacher2008-05-131-0/+13
| | | | | metze (This used to be commit da2179ee5d5b6094ab63a9d9d6a8d59893937087)
* libreplace: make sure system/network.h is only used when ↵Stefan Metzmacher2008-05-132-0/+5
| | | | | | | AC_LIBREPLACE_NETWORK_CHECKS was used metze (This used to be commit 3fddd36e119f73a5021370450f9687ef9d252bab)
* libreplace: export LIBREPLACE_NETWORK_OBJS and LIBREPLACE_NETWORK_LIBS varsStefan Metzmacher2008-05-131-17/+18
| | | | | metze (This used to be commit aa7ef1af746319a3d771decd0ec03dabe8b8ad28)
* libreplace: include inet_ntoa.o when the system one is brokenStefan Metzmacher2008-05-131-2/+3
| | | | | metze (This used to be commit 67845d3471711d24069636d0d4032f9d53748334)
* libreplace: merge getifaddrs.m4 into libreplace_network.m4Stefan Metzmacher2008-05-132-129/+127
| | | | | metze (This used to be commit 0234d397fefee8e1d0dcd3402f748c2251021c90)
* libreplace: merge getaddrinfo.m4 into libreplace_network.m4Stefan Metzmacher2008-05-132-33/+33
| | | | | metze (This used to be commit 64591d064dc3da6074f0f7539911a6e433d9cc43)
* libreplace: merge socketpair.m4 into libreplace_network.m4Stefan Metzmacher2008-05-132-2/+2
| | | | | metze (This used to be commit f9f8f93adcc7161ebb18f5a0bf28c73d951a15ad)
* libreplace: merge inet_pton.m4 into libreplace_network.m4Stefan Metzmacher2008-05-132-2/+2
| | | | | metze (This used to be commit 3a70274c908e31453942b442351eab8423c1a53d)
* libreplace: merge inet_ntop.m4 into libreplace_network.m4Stefan Metzmacher2008-05-132-2/+2
| | | | | metze (This used to be commit 223ef6c08efb52251d0a772bb0c481b2803cf0ce)
* libreplace: merge inet_aton.m4 into libreplace_network.m4Stefan Metzmacher2008-05-132-2/+2
| | | | | metze (This used to be commit fba00736c870f449c0eee32fe0d7b0d539dca51f)
* libreplace: merge inet_ntoa.m4 into libreplace_network.m4Stefan Metzmacher2008-05-132-20/+20
| | | | | metze (This used to be commit 82e826253b6d18832931dbb5c1dda009889bf9e0)
* libreplace: merge socket.m4 into libreplace_network.m4Stefan Metzmacher2008-05-132-40/+40
| | | | | metze (This used to be commit c70eba87dbbac6c2c1e68c343cdd410577c1686f)
* Fix typo.Jelmer Vernooij2008-05-081-1/+0
| | | | (This used to be commit bd089818a3182698dfe85039c1b2e22d8c2835bb)
* Add undefined symbol flag for AIX.William Jojo2008-05-081-0/+4
| | | | (This used to be commit dabdf24e86f038e3afc67532fa5bf60a37992161)
* libreplace: also use AC_LIBREPLACE_NETWORK_CHECKS for the standalone buildStefan Metzmacher2008-05-071-0/+1
| | | | | metze (This used to be commit 04f4523ed032946b8f0e74ac6f7458010159e3bb)
* libreplace: use AC_LIBREPLACE_NETWORK_CHECKS only for sambaStefan Metzmacher2008-05-072-1/+1
| | | | | metze (This used to be commit 3451b54bf7f5e37a589ec261d28c2a8b6f9788ed)
* libreplace: split out network checks into a AC_LIBREPLACE_NETWORK_CHECKS macroStefan Metzmacher2008-05-072-63/+73
| | | | | | | Note: moving it out of AC_LIBREPLACE_BROKEN_CHECKS will be the next step metze (This used to be commit 55a904b1d7aeca849d450e371b18afca5b0c6218)
* libreplace: always provide utime() and utimes()Stefan Metzmacher2008-05-076-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 (This used to be commit a9604fe4a323dccb537cf02ea7594437b4995803)
* libreplace: check how portable utimes() and futimes() areStefan Metzmacher2008-05-061-0/+1
| | | | | metze (This used to be commit 8798ce3c744025b94973784dcb44d099427ef190)
* use uintptr_t instead of intptr_t where appropriateAndrew Tridgell2008-04-173-3/+4
| | | | (This used to be commit d62f2bcc85c13605c133db250e0a86d2d6ccc481)
* libreplace(samba4): let LIBREPLACE depend on LIBREPLACE_NETWORK for nowStefan Metzmacher2008-03-281-1/+1
| | | | | | | | This should fix the build on solaris. Later this needs better fixing... metze (This used to be commit 89b7955733c34e9699a3b43ee54de92cb9469b90)
* libreplace: fix coverity ID 517 - untangle close from open in test/os2_delete.cMichael Adam2008-03-271-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 4ae4692bc6c6da15483a6f4a3363cdc23121efc7)
* libreplace: replace.c does not need system/network.h anymore.Michael Adam2008-03-181-1/+0
| | | | | Michael (This used to be commit 2d3c2f34f33338ff422047dae9cc262522689328)
* libreplace: move rep_socketpair() to its own module.Michael Adam2008-03-186-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 (This used to be commit 94ac8a25be15b55f66eff96fdddc2fdc71a43b1e)
* Fix macro name (no 's' in ifr_addr).Gerald W. Carter2008-03-181-1/+1
| | | | | | | Interface detection on Solaris still failing due to items pointed out here: http://lists.samba.org/archive/samba-technical/2007-November/056701.html (cherry picked from commit 37c87acc9d48c1fb5d4806374ca8e992300db1ff) (This used to be commit 5757d8dfe9e6cf7b662acdf5c3d825f0021822c0)
* Fix Coverity ID 554Volker Lendecke2008-03-181-0/+3
| | | | | (cherry picked from commit 471b1b0c58bc2def5d2fe9d98401def34724d447) (This used to be commit effda48a2670325fed56e158539417c6f95381b8)
* Check the return value of fgetsVolker Lendecke2008-03-181-1/+4
| | | | | (cherry picked from commit b8aaa9a69fd6217ce0387ef8e84f316706186d70) (This used to be commit 8f58d39c0c621e9da85308d721a146352cc4939e)
* libreplace: remove duplicate entry of inet_ntoa from README.Michael Adam2008-03-181-1/+0
| | | | | Michael (This used to be commit 98ee8c84300757d778733a458c6ca3e6022b40ea)
* libreplace: remove trailing white spaces.Michael Adam2008-03-182-2/+2
| | | | | Michael (This used to be commit 1f9ca7eed965904f67cf78fbac007432b8a057fd)
* libreplace: replace inet_ntoa() when it is missingMichael Adam2008-03-186-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 (This used to be commit 974c0c45ad42644348e0b55454715b12158f1028)
* libreplace: put inet_aton.c under LGPL instead of GPL.Michael Adam2008-03-181-9/+13
| | | | | Michael (This used to be commit cca5d6626fe395f08fd4c8b2344e4e43646cb987)
* libreplace: remove unused SOCKET_LIBS and NSL_LIBSStefan Metzmacher2008-03-181-3/+0
| | | | | metze (This used to be commit 62bb177a6e4a3e1f949b78c7cd7583f2e1271739)
* libreplace: for samba4 create LIBREPLACE_NETWORK as EXT_LIBStefan Metzmacher2008-03-181-0/+3
| | | | | metze (This used to be commit 79037c31334e271a718fcac234148038814b591e)
* libreplace: use LIBREPLACE_NETWORK_LIBS within some configure checksStefan Metzmacher2008-03-182-3/+3
| | | | | | | ...instead of using SOCKET_LIBS and NSL_LIBS. metze (This used to be commit cef2e8d748756f61c248ad6660e85dd1ac36308a)
* libreplace: combine SOCKET_LIBS and NSL_LIBS to LIBREPLACE_NETWORK_LIBSStefan Metzmacher2008-03-181-7/+9
| | | | | | | But keep the old ones untill the callers are fixed. metze (This used to be commit e7115dcc8a0a4f420de7a901e3a21d4f35a6fcf9)