summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2007-10-25Try and fix the Solaris build by adding a missing defineJeremy Allison1-0/+5
(from Jerry). Jeremy (This used to be commit a68bbea0d42cc64b9fa731ab2a1da82ef30937c6)
2007-10-25[libreplace] define AI_NUMERICSERV as it's used in getaddrinfo.cmetze1-0/+11
metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25728 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 11a977aa0757801fb0fa805b123e7bc75c8be447)
2007-10-25[libreplace] move and fix getaddrinfo configure checksmetze2-30/+33
- move getaddrinfo check into getaddrinfo.m4 - add getaddrinfo.o to LIBREPLACEOBJ so that we really build the replacements metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25726 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit de01c503f4d16b8c3c0ad75225cf0b1822fd8c7f)
2007-10-25- include getaddrinfo.h after we have defined struct addrinfometze3-16/+24
- use rep_ instead of pg_ as prefix in getaddrinfo.[ch] - define HAVE_<name> macros when we replace functions metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25724 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit e56977ea459b3615d33237d19ed8e7ad8b509853)
2007-10-25[libreplace] if we replace types define the HAVE_<type> macrometze1-0/+3
this is needed as heimdal's roken.h also tries to replace the types metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25718 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit b81d8bc43cd7167a5cd4b18c26ba3eecf75043eb)
2007-10-25[libreplace] move definition of struct addrinfo so that it can use socklen_tmetze1-15/+13
metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25715 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 45150075677451b48ce56ebdce96aca1ed13fa80)
2007-10-25[libreplace] move define of a constant to near to the othersmetze1-4/+4
metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25714 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit fa120f7c50d0084e7d887811e5fa59ae3bcfe53e)
2007-10-25[libreplace] include socket_wrapper.h after we have typedef'ed socklen_tmetze1-7/+7
metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25713 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit f1d434a132e424f2fdce59d51a7c398988c1474d)
2007-10-24We do support name lookups for host and service in our replacementJeremy Allison1-5/+0
code - remove the restrictions from the original Postgres code. Jeremy. (This used to be commit bc9008aa1dcb66890795f0ff2d3046da7df867d9)
2007-10-24This is a large patch (sorry). Migrate from struct in_addrJeremy Allison3-76/+227
to struct sockaddr_storage in most places that matter (ie. not the nmbd and NetBIOS lookups). This passes make test on an IPv4 box, but I'll have to do more work/testing on IPv6 enabled boxes. This should now give us a framework for testing and finishing the IPv6 migration. It's at the state where someone with a working IPv6 setup should (theorecically) be able to type : smbclient //ipv6-address/share and have it work. Jeremy. (This used to be commit 98e154c3125d5732c37a72d74b0eb5cd7b6155fd)
2007-10-24Fix for AIX interface code from Kyle Stemen <kstemen@centeris.com>Jeremy Allison1-9/+16
Jeremy. (This used to be commit 4d4ab9aeb9d85b4c98cbf8a8363a9cefecd4b365)
2007-10-21Fix compile error caused by unknown variable.Gerald (Jerry) Carter1-1/+1
(This used to be commit dfef16ac4318b460a5bd29475eb395c1905a5cd8)
2007-10-21Correct VERSION and version.c to use SAMBA_VERSION_VENDOR_PATCHGerald (Jerry) Carter1-3/+3
which is used by mkversion.sh. (This used to be commit a62c7f9350322ab435244eafe6053fd5ee618973)
2007-10-19Add test for "struct in6_addr" to the HAVE_IPV6 configure test.Gerald (Jerry) Carter3-12/+12
Also make use of "if defined(HAVE_IPV6)" rather than testing for AF_INET6 since this is not sufficient on HP-UX 11.11 to ensure a working IPv6 implementation. (This used to be commit 620785df4e57b72471ff0315e22e0d2f28a2b1a5)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison50-268/+268
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-18[libreplace] fix the standalone build of libreplaceStefan Metzmacher2-28/+34
all configure results which are used in replace.h or any system/*.h should be in the in the libreplace *.m4 files! metze (This used to be commit 1eefa0264bb1a304a30ec4c7c6e2392c627ee6a3)
2007-10-17Reformatting fix for new coding guidelines. BOOL ->bool.Jeremy Allison1-264/+320
Jeremy. (This used to be commit 315215e20e1e470c5077122a2e250ecb3d45ce9b)
2007-10-17delete empty file lib/replace/system/getaddrinfo.hStefan Metzmacher1-0/+0
metze (This used to be commit 354bdd38e8714b789daffc897cd843a8d401be45)
2007-10-16Improve IPv4 detection.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 2ef50e325c2183385286b994216624dc3a309ff3)
2007-10-16Move #defined for getaddrinfo into network.h (as otherJeremy Allison2-84/+91
defines). Allows RHEL4 compile to work. Jeremy. (This used to be commit 0ffdf4fdeea88c21880c8bf69d8db56fb49effa7)
2007-10-16Added in missing def for AI_ADDRCONFIG.Jeremy Allison1-0/+4
Jeremy. (This used to be commit 3ef3c3afc3f56b0f4fdb384d55d2e712060fbedf)
2007-10-16Fix access control code to be IPv6/v4 protocol independent.Jeremy Allison3-175/+237
Make unix_wild_match() talloc, not pstring based. Next will be name resolution code, and client code. Jeremy. (This used to be commit f6a01b82c5a47957659df08ea84e335dfbba1826)
2007-10-15Move to protocol independent code in most of lib/util_sock.cJeremy Allison4-228/+263
We don't use gethostbyname any more except in one case where we're looking for host aliases (I don't know how to do that with getaddrinfo yet). New function should be getaddrinfo(). Next step will be fixing lib/access.c, and then changing libsmb/namequery.c to cope with IPv6 address returns. Jeremy. (This used to be commit 4a56b697b6adcf095e25895c4a9ba3192ed34124)
2007-10-15Fix warning messages for unused variables.Jeremy Allison1-1/+3
Jeremy. (This used to be commit 406737cd9a34ac498e5823b380e1768d41e16c1b)
2007-10-15rename getsmbpass -> rep_getpass and provide the function prototypeStefan Metzmacher2-2/+3
metze (This used to be commit 96820f8d8f6522fc264efda0f069e2f6a420ac2e)
2007-10-15use "system/*.h" to get the system includesStefan Metzmacher1-15/+3
metze (This used to be commit d20c2fa274297e9577ed28b8ed04806a425bdc57)
2007-10-15fix the compilation of getpass.c and it's configure testStefan Metzmacher2-13/+2
metze (This used to be commit f4c0961a16a84dcdfe6e2faafb75c76983e6d466)
2007-10-15r16320: Ensure variable is not null before calling fclose. Klocwork #412. ↵Jeremy Allison1-1/+1
Jeremy. (This used to be commit 33ee0cfb190a883229d0824d7194898fd8966ceb)
2007-10-15r16245: Cope with string being zero len. Klocwork bug #410. Jeremy.Jeremy Allison1-2/+4
(This used to be commit 46c12de07fe6f44bcf58ca9de276e7932384843d)
2007-10-15Volker's fix for bug #668. Change the \n after the password prompt to go to ↵jmcd1-2/+3
tty instead of stdout. (This used to be commit 0cd1ed0424ce87f60070d43caffda41be6706d59)
2007-10-15reapply: Allow ^C to interrupt smbpasswd if using our getpass. from JeremyStefan Metzmacher1-4/+32
metze (This used to be commit d4ae42b1b2982dd786d6da16d7fa964d25fd3356)
2007-10-15reformat getpass() replacement codeStefan Metzmacher1-62/+58
metze (This used to be commit 3e8f43e3cf97f10be4717978643ef3edca8650a5)
2007-10-15missing stuff from samba4's libreplaceStefan Metzmacher2-1/+4
metze (This used to be commit 0177158d85797e0d22c81d88175a77d4ad5ed711)
2007-10-15don't imply "system/network.h" within replace.h,metze2-4/+18
as this brings in the socket_wrapper.h in unexpected code and we endup with a missing 'swrap_close' while linking metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25602 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit ec8e3f7f92522c65ec472058321db8a7ac30ec4c)
2007-10-14Fix one more place for IFF_LOOPBACKVolker Lendecke1-1/+1
(This used to be commit add1294562b76c38d5e471f280ca1167b4d8a93d)
2007-10-13Use strlcpy instead of strncpyVolker Lendecke1-12/+8
(This used to be commit 5e95c548864bc8b075b8343e69a69e1a22c92456)
2007-10-13Fix an uninitialized variable warningVolker Lendecke1-2/+2
(This used to be commit d0f25bb89a2268c8f789dd362010f8b785489424)
2007-10-13Fix a segfault with an unknown interfaceVolker Lendecke1-1/+7
"interfaces = foo" with "foo" not being a known interface segfaulted for me. (This used to be commit 556c33702ce6d6c7cde43ddfe965c78ebc2963d3)
2007-10-13Also find loopback interfacesVolker Lendecke1-1/+1
Not sure if a loopback interface is actually a broadcast one. (This used to be commit 76d8dedc368ecb1594780ce58ffee2a35a6f4f73)
2007-10-12Dummy formatting commit to check I've set up my home gitJeremy Allison1-1/+2
correctly. (This used to be commit a1166e9e651f4acdcf7926c5d8e9cf0c9108fe71)
2007-10-12Convert get_peer_addr() to IPv6. Only is_myname_or_ipaddr()Jeremy Allison1-55/+112
lefto to do then I can fix the lib/access.c functions. Jeremy. (This used to be commit 3403c6c330b886c86d6d856c3ffc13b043fd6fc1)
2007-10-12offsetof() is always present as shown in someStefan Metzmacher1-4/+0
libreplace testing. metze (This used to be commit 4f084efd6ac39a8347d5cfc73b727940e40150cf)
2007-10-11Try and fix segfault found by Guenther on Fedora. FedoraJeremy Allison1-2/+5
seems to return bogus values for the interface entries on vmnet and tun interfaces. Jeremy. (This used to be commit 12c0b1d82802ccd1b272a8b47ddb7d258e10477c)
2007-10-11Add const to the get_peer_addr() and get_socket_addr()Jeremy Allison1-15/+16
calls. Use the IPv6 varient for get_peer_addr(). Jeremy. (This used to be commit baf1f52e34ae2465a7a34be1065da29ed97e7bea)
2007-10-10Add start of IPv6 implementation. Currently most of this is avoidingJeremy Allison6-506/+1112
IPv6 in winbindd, but moves most of the socket functions that were wrongly in lib/util.c into lib/util_sock.c and provides generic IPv4/6 independent versions of most things. Still lots of work to do, but now I can see how I'll fix the access check code. Nasty part that remains is the name resolution code which is used to returning arrays of in_addr structs. Jeremy. (This used to be commit 3f6bd0e1ec5cc6670f3d08f76fc2cd94c9cd1a08)
2007-10-10Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into ↵Jeremy Allison1-2/+39
SAMBA_3_2_0 (This used to be commit 3f1ac564c0ab6d498a47da84b4b5744d8d376f3b)
2007-10-10Merge from metze of libreplace header changesJeremy Allison2-6/+12
(This used to be commit d39ce8e37ed81f4a34a148f975874989d8d187a1)
2007-10-11Display ace_objects in security descriptors.Guenther Deschner1-2/+39
Guenther (This used to be commit 5fa3fc81b765f1d9682170de13d2e10994fdd889)
2007-10-10[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter9-340/+40
(This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
2007-10-10r25587: Fix getaddrinfo detection code. From Timur.Jeremy Allison1-1/+9
Jeremy. (This used to be commit 3824a10fbcc3e061d569b0f74501ce97ec0a4414)