summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2007-11-06Wrap native HPUX functions in dl implementation.jelmer1-0/+16
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25859 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 0ec16729299887b4a80a7e24fbd1750632276691)
2007-11-06Check for HPUX dl functions.jelmer1-0/+5
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25855 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 9f862e9faf0fa9cddfcc2f87d9f247082718b3e0)
2007-11-06Move SHLIBEXT determination into a test as well.jelmer1-0/+18
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25852 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 322cf8002bab1e449616d9fcea0bd4c9535cfe6a)
2007-11-06Move system-specific ldflags checks to libreplace so they can be used by ldb.jelmer1-0/+38
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25851 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 63b7690335360a073dc1ae111f740a7934f1a92f)
2007-11-06Add macro for picflag.jelmer1-0/+55
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25850 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 48c70f604071fcf7c0887fe0136bdc2dda4c8ff4)
2007-11-06Add configure test for -Wl,--export-dynamic.jelmer2-0/+11
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25846 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 4904af51cdccd4e52d2805bd62f39276447c4646)
2007-11-06libreplace: include nss_wrapper.h if NSS_WRAPPER is definedmetze1-0/+7
metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25838 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 809fee4bef66eb8b8687f88257c0d6f77d3b4063)
2007-11-05Remove the horror that was the global smb_rw_error.Jeremy Allison1-43/+44
Each cli struct has it's own local copy of this variable, so use that in client code. In the smbd server, add one static to smbd/proccess.c and use that inside smbd. Fix a bunch of places where smb_rw_error could be set by calling read_data() in places where we weren't reading from the SMB client socket (ie. winbindd). Jeremy. (This used to be commit 255c2adf7b6ef30932b5bb9f142ccef4a5d3d0db)
2007-11-04Don't alloc struct iface_struct nics[MAX_INTERFACES]; (128 entries)Jeremy Allison1-1/+8
on the stack - use talloc. Jeremy (This used to be commit b5e37af251a26648b0e4f59ca548c5374399175e)
2007-11-04This should really be a cond_set_smb_read_error().Jeremy Allison1-3/+1
Jeremy. (This used to be commit 5ab76b58c00dde89b56060482f5cdc5d0c6c56cb)
2007-11-04Don't use 0 when we mean SMB_READ_OK.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 08ee4314a9e25700288f4ea1af22ee1732dfea61)
2007-11-05Merge commit 'origin/v3-2-test' into branches/upstreamGünther Deschner1-6/+1
(This used to be commit d0bf0ad2ae9a2bff4cec8c7e801a22c624b874ae)
2007-11-05Remove unnecessary codeVolker Lendecke1-6/+1
SAFE_FREE checks for NULL anyway, and SMB_STRDUP panics on failure (This used to be commit 4cdebda39b9b1790fc5c7df3dc81bfb46b047ad7)
2007-11-05Display sec ace flags.Günther Deschner1-3/+31
Guenther (This used to be commit 52bf835c5e9b2fa759c61bf4a7a364eeaeae6043)
2007-11-03Remove most of the remaining globals out of lib/util_sock.c.Jeremy Allison3-42/+40
I have a plan for dealing with the remaining..... Watch this space. Jeremy. (This used to be commit 963fc7685212689f02b3adcc05b4273ee5c382d4)
2007-11-03Remove more static data from lib/util_sock.c andJeremy Allison3-39/+33
callers. Jeremy. (This used to be commit 35aaa36f82c70964cee5d0778eb04547b226dd3f)
2007-11-03Missed one case where I need to pass down addrlen.Jeremy Allison1-1/+1
Jeremy (This used to be commit 62b5ca3334598aec3304d21118f67702afc3854a)
2007-11-03I can't get away without a 'length' arg. :-).Jeremy Allison3-14/+16
Jeremy. (This used to be commit 95d01279a5def709d0a5d5ae7224d6286006d120)
2007-11-03Stop get_peer_addr() and client_addr() from using globalJeremy Allison3-17/+23
statics. Part of my library cleanups. Jeremy. (This used to be commit e848506c858bd16706c1d7f6b4b032005512b8ac)
2007-11-03Remove the smb_read_error global variable and replaceJeremy Allison1-21/+38
it with accessor functions. "One global or pstring a day...." :-). Jeremy. (This used to be commit d50d14c300abc83b7015718ec48acc8b3227a273)
2007-11-03Remove unused var noticed by metze.Jeremy Allison1-1/+0
Jeremy. (This used to be commit ac4f897f0dec0e33e79c316340b47c2803104635)
2007-11-02Fix the snprintf checks, and fix a typo in pointer indirection.Jeremy Allison1-5/+5
These fixes are needed for a working getaddrinfo etc. replacement. Fixes from Wayne Davison <wayned@samba.org> from rsync. Jeremy. (This used to be commit 494bf6293bedbda4b10aa2eae452377b8130cd01)
2007-11-02Ensure we use the correct socklen_t values for bind() forJeremy Allison1-1/+3
Solaris. Jeremy. (This used to be commit 638579d75a2aa00836dc4c0c772381b775944b16)
2007-11-02Fix typos in calc_sa_size, noticed by jim.brown@miami.eduJeremy Allison1-1/+2
Jeremy. (This used to be commit 6b7ccd3efb05291f3b8779845a3842a09bb9aa07)
2007-11-02Fix Solaris by ensuring we use the IPv4 or IPv6 lengthJeremy Allison3-6/+42
in any getnameinfo calls. Jeremy (This used to be commit 4d7badb0c44f287034f58d9a412e662c0fbecdc9)
2007-11-02Fix state_path to take a const string, not use pstring.Jeremy Allison1-7/+11
Jeremy. (This used to be commit 8c73e19f51d6e3f520cf44dd22f9b9584d4b460f)
2007-11-01Patch 2 of 3 from Debian Samba packagers:Gerald (Jerry) Carter3-7/+7
The point is doing the following associations: - non discardable state data (all TDB files that may need to be backed up) go to statedir - shared data (codepage stuff) go to codepagedir The patch *does not change* the default location for these directories. So, there is no behaviour change when applying it. The main change is for samba developers who have to think when dealing with files that previously pertained to libdir whether they: - go in statedir - go in codepagedir - stay in libdir (This used to be commit d6cdbfd875bb2653e831d314726c3240beb0a96b)
2007-11-01Patch from Debian Samba package maintainers:Gerald (Jerry) Carter1-0/+33
Patch 1 of 3: - Patch 1 adds the new variables - Patch 2 makes uses of them for files belonging to the "state" path and the "code pages" path This patch seemed more easily acceptable, which explains why we separated it from patch 3 - Patch 3 reassigns files to the "cache" path. Indeed all "debatable" changes have been moved to that one The point is adding: - a path for non discardable state data: basically all TDB files that may need to be backed up - a path for shared data: mostly codepage stuff - a path for cache data to host files such as browse.dat, printers.tbd, <printer>.tdb All these are currently mixed in "libdir" (${prefix}/lib/samba by default). The patch keeps these new paths to point to ${prefix}/lib/samba by default and does therefore not change the software behaviour. Used alone, it just adds unused variables...so it can safely be used in sources without any behaviour change and no impact on Samba developers work. (This used to be commit b7d2fadbef044a89920da613b1aafc74a3d94e24)
2007-10-31Make explicit draining the socket on RECVFILE. AddJeremy Allison1-14/+7
capability for large UNIX write if not signing and recvfile set. Cope with large UNIX write length on incoming processing. Stevef - we can now test 1-16Mb writes from CIFFS. Jeremy. (This used to be commit 8cf78776b0a44bd026cef3d74eb11cfb415f8303)
2007-10-30Handle the disk full error case correctly.Jeremy Allison1-6/+25
Jeremy. (This used to be commit b7088bb9c2a00d4717b9a7efa4bddc0c005f4efb)
2007-10-30Add new parameter, "min receivefile size" (by default setJeremy Allison2-107/+39
to zero). If non-zero, writeX calls greater than this value will be left in the socket buffer for later handling with recvfile (or userspace equivalent). Definition of recvfile for your system is left as an exercise for the reader (I'm working on getting splice working :-). Jeremy. (This used to be commit 11c03b75ddbcb6e36b231bb40a1773d1c550621c)
2007-10-29Forgot to add recvfile.cJeremy Allison1-0/+158
Jeremy. (This used to be commit d5886218e53910b7015e6f13bc634e1bf338565a)
2007-10-27Change all occurrences of zero_addr(&ss,AF_INET) toJeremy Allison1-4/+4
zero_addr(&ss). All current uses were always of the AF_INET form, so simplify the call. If in the future we need to zero an addr to AF_INET6 this can be done separately. Jeremy. (This used to be commit 2e92418a138bf2738b77b7e0fcb2fa37ad84fc0c)
2007-10-27Two patchesVolker Lendecke2-2/+3
Hi! Can you check and push them? Thanks, Volker From b488af5905e2dee12a1a72a3b40801ae5c26f24f Mon Sep 17 00:00:00 2001 From: Volker Lendecke <vl@sernet.de> Date: Sat, 27 Oct 2007 14:20:09 +0200 Subject: [PATCH] Fix some warnings and errors (This used to be commit e17d3e10e860c96b6d5208e5fe51e43b8e58c174)
2007-10-26Move the horrible hack for link local addresses out of namequery.cJeremy Allison1-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)
2007-10-25Fix bug in writing names into gencacheJeremy Allison3-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)
2007-10-25Fix resolve name to resolve IPv6 addresses of link-local%ifaddrJeremy Allison3-100/+140
Jeremy. (This used to be commit e6609cab732d5cd5cc9a5ae50aee15147f2ec6ec)
2007-10-25Fix reversed bool check for access. Found by kukks.Jeremy Allison1-1/+1
Thanks ! Jeremy. (This used to be commit a13e8bd39de978d69666b8aeb884d943885a3605)
2007-10-25Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into ↵Jeremy Allison1-0/+5
v3-2-test (This used to be commit ec891be53cc4042baf418c1f7b037a11e5055273)
2007-10-25When doing reverse lookups actually look up the name, notJeremy Allison1-1/+1
just the numeric address (doh!) :-). Jeremy. (This used to be commit 9aa9ecd8cc29d055d78f16b8fb2156ec04063c42)
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)