summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
* Move the horrible hack for link local addresses out of namequery.cJeremy Allison2007-10-261-4/+51
| | | | | | | and into util_sock.c. is_ipaddress() now copes with link:local:v6%ifname addresses, as does interpret_string_addr(). Jeremy (This used to be commit a3f7db3d30ced566c8340696914f1be3293a9c5b)
* Fix bug in writing names into gencacheJeremy Allison2007-10-253-13/+6
| | | | | | | | | as well as 2 typos where AF_INET6 was mistypes as AF_INET. JERRY YOU NEED THESE FIXES. Fixes smbclient -L localhost -U% Bugs reported by Kukks (thanks kukks). Jeremy. (This used to be commit f109f82622ca30ae2360e8300152e90b9587ffd8)
* Fix resolve name to resolve IPv6 addresses of link-local%ifaddrJeremy Allison2007-10-253-100/+140
| | | | | Jeremy. (This used to be commit e6609cab732d5cd5cc9a5ae50aee15147f2ec6ec)
* Fix reversed bool check for access. Found by kukks.Jeremy Allison2007-10-251-1/+1
| | | | | | Thanks ! Jeremy. (This used to be commit a13e8bd39de978d69666b8aeb884d943885a3605)
* Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into ↵Jeremy Allison2007-10-251-0/+5
|\ | | | | | | | | | | v3-2-test (This used to be commit ec891be53cc4042baf418c1f7b037a11e5055273)
| * Try and fix the Solaris build by adding a missing defineJeremy Allison2007-10-251-0/+5
| | | | | | | | | | | | (from Jerry). Jeremy (This used to be commit a68bbea0d42cc64b9fa731ab2a1da82ef30937c6)
* | When doing reverse lookups actually look up the name, notJeremy Allison2007-10-251-1/+1
|/ | | | | | just the numeric address (doh!) :-). Jeremy. (This used to be commit 9aa9ecd8cc29d055d78f16b8fb2156ec04063c42)
* [libreplace] define AI_NUMERICSERV as it's used in getaddrinfo.cmetze2007-10-251-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)
* [libreplace] move and fix getaddrinfo configure checksmetze2007-10-252-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)
* - include getaddrinfo.h after we have defined struct addrinfometze2007-10-253-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)
* [libreplace] if we replace types define the HAVE_<type> macrometze2007-10-251-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)
* [libreplace] move definition of struct addrinfo so that it can use socklen_tmetze2007-10-251-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)
* [libreplace] move define of a constant to near to the othersmetze2007-10-251-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)
* [libreplace] include socket_wrapper.h after we have typedef'ed socklen_tmetze2007-10-251-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)
* We do support name lookups for host and service in our replacementJeremy Allison2007-10-241-5/+0
| | | | | | code - remove the restrictions from the original Postgres code. Jeremy. (This used to be commit bc9008aa1dcb66890795f0ff2d3046da7df867d9)
* This is a large patch (sorry). Migrate from struct in_addrJeremy Allison2007-10-243-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)
* Fix for AIX interface code from Kyle Stemen <kstemen@centeris.com>Jeremy Allison2007-10-241-9/+16
| | | | | Jeremy. (This used to be commit 4d4ab9aeb9d85b4c98cbf8a8363a9cefecd4b365)
* Fix compile error caused by unknown variable.Gerald (Jerry) Carter2007-10-211-1/+1
| | | | (This used to be commit dfef16ac4318b460a5bd29475eb395c1905a5cd8)
* Correct VERSION and version.c to use SAMBA_VERSION_VENDOR_PATCHGerald (Jerry) Carter2007-10-211-3/+3
| | | | | which is used by mkversion.sh. (This used to be commit a62c7f9350322ab435244eafe6053fd5ee618973)
* Add test for "struct in6_addr" to the HAVE_IPV6 configure test.Gerald (Jerry) Carter2007-10-193-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)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-1850-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)
* [libreplace] fix the standalone build of libreplaceStefan Metzmacher2007-10-182-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)
* Reformatting fix for new coding guidelines. BOOL ->bool.Jeremy Allison2007-10-171-264/+320
| | | | | Jeremy. (This used to be commit 315215e20e1e470c5077122a2e250ecb3d45ce9b)
* delete empty file lib/replace/system/getaddrinfo.hStefan Metzmacher2007-10-171-0/+0
| | | | | metze (This used to be commit 354bdd38e8714b789daffc897cd843a8d401be45)
* Improve IPv4 detection.Jeremy Allison2007-10-161-1/+1
| | | | | Jeremy. (This used to be commit 2ef50e325c2183385286b994216624dc3a309ff3)
* Move #defined for getaddrinfo into network.h (as otherJeremy Allison2007-10-162-84/+91
| | | | | | defines). Allows RHEL4 compile to work. Jeremy. (This used to be commit 0ffdf4fdeea88c21880c8bf69d8db56fb49effa7)
* Added in missing def for AI_ADDRCONFIG.Jeremy Allison2007-10-161-0/+4
| | | | | Jeremy. (This used to be commit 3ef3c3afc3f56b0f4fdb384d55d2e712060fbedf)
* Fix access control code to be IPv6/v4 protocol independent.Jeremy Allison2007-10-163-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)
* Move to protocol independent code in most of lib/util_sock.cJeremy Allison2007-10-154-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)
* Fix warning messages for unused variables.Jeremy Allison2007-10-151-1/+3
| | | | | Jeremy. (This used to be commit 406737cd9a34ac498e5823b380e1768d41e16c1b)
* rename getsmbpass -> rep_getpass and provide the function prototypeStefan Metzmacher2007-10-152-2/+3
| | | | | metze (This used to be commit 96820f8d8f6522fc264efda0f069e2f6a420ac2e)
* use "system/*.h" to get the system includesStefan Metzmacher2007-10-151-15/+3
| | | | | metze (This used to be commit d20c2fa274297e9577ed28b8ed04806a425bdc57)
* fix the compilation of getpass.c and it's configure testStefan Metzmacher2007-10-152-13/+2
| | | | | metze (This used to be commit f4c0961a16a84dcdfe6e2faafb75c76983e6d466)
* r16320: Ensure variable is not null before calling fclose. Klocwork #412. ↵Jeremy Allison2007-10-151-1/+1
| | | | | | Jeremy. (This used to be commit 33ee0cfb190a883229d0824d7194898fd8966ceb)
* r16245: Cope with string being zero len. Klocwork bug #410. Jeremy.Jeremy Allison2007-10-151-2/+4
| | | | (This used to be commit 46c12de07fe6f44bcf58ca9de276e7932384843d)
* Volker's fix for bug #668. Change the \n after the password prompt to go to ↵jmcd2007-10-151-2/+3
| | | | | | tty instead of stdout. (This used to be commit 0cd1ed0424ce87f60070d43caffda41be6706d59)
* reapply: Allow ^C to interrupt smbpasswd if using our getpass. from JeremyStefan Metzmacher2007-10-151-4/+32
| | | | | metze (This used to be commit d4ae42b1b2982dd786d6da16d7fa964d25fd3356)
* reformat getpass() replacement codeStefan Metzmacher2007-10-151-62/+58
| | | | | metze (This used to be commit 3e8f43e3cf97f10be4717978643ef3edca8650a5)
* missing stuff from samba4's libreplaceStefan Metzmacher2007-10-152-1/+4
| | | | | metze (This used to be commit 0177158d85797e0d22c81d88175a77d4ad5ed711)
* don't imply "system/network.h" within replace.h,metze2007-10-152-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)
* Fix one more place for IFF_LOOPBACKVolker Lendecke2007-10-141-1/+1
| | | | (This used to be commit add1294562b76c38d5e471f280ca1167b4d8a93d)
* Use strlcpy instead of strncpyVolker Lendecke2007-10-131-12/+8
| | | | (This used to be commit 5e95c548864bc8b075b8343e69a69e1a22c92456)
* Fix an uninitialized variable warningVolker Lendecke2007-10-131-2/+2
| | | | (This used to be commit d0f25bb89a2268c8f789dd362010f8b785489424)
* Fix a segfault with an unknown interfaceVolker Lendecke2007-10-131-1/+7
| | | | | "interfaces = foo" with "foo" not being a known interface segfaulted for me. (This used to be commit 556c33702ce6d6c7cde43ddfe965c78ebc2963d3)
* Also find loopback interfacesVolker Lendecke2007-10-131-1/+1
| | | | | Not sure if a loopback interface is actually a broadcast one. (This used to be commit 76d8dedc368ecb1594780ce58ffee2a35a6f4f73)
* Dummy formatting commit to check I've set up my home gitJeremy Allison2007-10-121-1/+2
| | | | | correctly. (This used to be commit a1166e9e651f4acdcf7926c5d8e9cf0c9108fe71)
* Convert get_peer_addr() to IPv6. Only is_myname_or_ipaddr()Jeremy Allison2007-10-121-55/+112
| | | | | | lefto to do then I can fix the lib/access.c functions. Jeremy. (This used to be commit 3403c6c330b886c86d6d856c3ffc13b043fd6fc1)
* offsetof() is always present as shown in someStefan Metzmacher2007-10-121-4/+0
| | | | | | | libreplace testing. metze (This used to be commit 4f084efd6ac39a8347d5cfc73b727940e40150cf)
* Try and fix segfault found by Guenther on Fedora. FedoraJeremy Allison2007-10-111-2/+5
| | | | | | | seems to return bogus values for the interface entries on vmnet and tun interfaces. Jeremy. (This used to be commit 12c0b1d82802ccd1b272a8b47ddb7d258e10477c)
* Add const to the get_peer_addr() and get_socket_addr()Jeremy Allison2007-10-111-15/+16
| | | | | | calls. Use the IPv6 varient for get_peer_addr(). Jeremy. (This used to be commit baf1f52e34ae2465a7a34be1065da29ed97e7bea)