1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

23560 Commits

Author SHA1 Message Date
Gerald (Jerry) Carter
d6cdbfd875 Patch 2 of 3 from Debian Samba packagers:
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
2007-11-01 15:53:44 -04:00
Gerald (Jerry) Carter
b7d2fadbef Patch from Debian Samba package maintainers:
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.
2007-11-01 13:00:10 -04:00
Michael Adam
6913536064 Enable building the zfsacl VFS module by specifying
"--with-shared-modules=vfs_zfsacl" on the configure command line.

Michael
2007-11-01 14:24:27 +01:00
Jeremy Allison
8a77f520fa Note when we're setting change time, not write time, and send
message accordingly. Apart from not supporting create time we
now pass the S4 RAW-NOTIFY torture.
Jeremy.
2007-10-31 16:32:48 -07:00
Jeremy Allison
39d265375c Fix some cases where file_set_dosmode was being passed
False instead of NULL. Fix more of the notifications to
be correct for Samba4 RAW-NOTIFY torture (we had missed
one when calling set_ea_dos_attribute().
Jeremy.
2007-10-31 15:45:45 -07:00
Jeremy Allison
8fbefe18a2 Fix vfstest link - move socket calls into smbd/process.c
not smbd/server.c
Jeremy
2007-10-31 14:24:52 -07:00
Jeremy Allison
52f13d8495 Add printout of large read/write caps if detected.
Jeremy.
2007-10-31 14:12:50 -07:00
Jeremy Allison
8cf78776b0 Make explicit draining the socket on RECVFILE. Add
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.
2007-10-31 14:01:35 -07:00
Jeremy Allison
b7088bb9c2 Handle the disk full error case correctly.
Jeremy.
2007-10-30 18:18:40 -07:00
Jeremy Allison
247675695d Ensure we don't prematurely clean out the bytes read.
Jeremy.
2007-10-30 17:42:02 -07:00
Jeremy Allison
11c03b75dd Add new parameter, "min receivefile size" (by default set
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.
2007-10-30 16:22:24 -07:00
Jeremy Allison
765b37c693 Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test 2007-10-30 12:55:56 -07:00
Jeremy Allison
3d3d1b806a Our userlevel SMBwriteX call is non-standard in that it
sometimes uses a 12-word write and doesn't include a pad
byte (as Windows does). Fix this so that we are identical
to Windows clients. This will make recvfile processing
much easier to detect (as we can just read a standard
writeX header length to decide).
Jeremy.
2007-10-30 12:54:39 -07:00
Jeremy Allison
c833c33643 Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test 2007-10-30 10:19:45 -07:00
Stefan Metzmacher
95f76ae7a5 start smbd, nmbd and winbindd with the same startup message
at debug level 0.

metze
2007-10-30 15:44:27 +01:00
Jeremy Allison
d5886218e5 Forgot to add recvfile.c
Jeremy.
2007-10-29 17:17:16 -07:00
Jeremy Allison
bfbdb6324c Add in the recvfile entry to the VFS layer with a default
implementation. Needed for the zero-copy write code.
Jeremy.
2007-10-29 17:16:13 -07:00
Jeremy Allison
bda8c0bf57 Fix the setup_kaddr() call to cope with IPv6.
This is the last obvious change I can see. At
this point we can start claiming IPv6 support
(Hurrah !:-).
Jeremy.
2007-10-29 15:03:36 -07:00
Jeremy Allison
814daded90 Change our DNS code to cope with AAAA records. A6 records
look like a nightmare to use, so ignore them for now.
Jeremy.
2007-10-29 13:34:00 -07:00
Volker Lendecke
95cc019af7 Enable vfs objects = /full/path/to/object.so
Right now I'm testing a vfs object. I can't right now in make test, because
"vfs objects" assumes the .so files to be in $libdir/vfs. This patch parses the
module name out of the object name in case it starts with "/". The module name
is assumed to be the last path component's basename.
2007-10-28 12:30:44 -04:00
Jeremy Allison
2e92418a13 Change all occurrences of zero_addr(&ss,AF_INET) to
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.
2007-10-27 20:29:36 -07:00
Jeremy Allison
9f82a57669 Fix zero_addr(&ip, INADDR_ANY); -> zero_addr(&ip, AF_INET)
from Volker's patch.
Jeremy.
2007-10-27 12:51:38 -07:00
Volker Lendecke
e17d3e10e8 Two patches
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
2007-10-27 12:50:36 -07:00
Stefan Metzmacher
83b3ecde13 rerun make idl
metze
2007-10-27 11:57:48 +02:00
metze
3625ed395c add NDR_ERR_INVALID_POINTER
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25744 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-10-27 10:27:38 +02:00
Jeremy Allison
25bbc9a661 Ensure temporary memory is freed - pointed out by "Li, Ying (ESG)" <ying.li2@hp.com>.
We aren't currently leaking memory, but are leaving it around for
longer than we need to.
Jeremy.
2007-10-26 17:58:28 -07:00
Jeremy Allison
9993f8d1af Fix popt bool problems (need POPT_ARG_NONE, not POPT_ARG_VALUE).
Reported by kukks - thanks !
Jeremy.
2007-10-26 16:22:18 -07:00
Jeremy Allison
a3f7db3d30 Move the horrible hack for link local addresses out of namequery.c
and into util_sock.c. is_ipaddress() now copes with link:local:v6%ifname
addresses, as does interpret_string_addr().
Jeremy
2007-10-26 16:03:20 -07:00
Jeremy Allison
4b3635d6bc Fix a few more sockaddr -> sockaddr_storgage.
Jeremy.
2007-10-26 16:02:16 -07:00
Stefan Metzmacher
cecc807551 one more struct in_addr => struct sockaddr_storage
jra: please check this...

metze
2007-10-26 16:37:32 +02:00
Jeremy Allison
f109f82622 Fix bug in writing names into gencache
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.
2007-10-25 19:07:25 -07:00
Jeremy Allison
e6609cab73 Fix resolve name to resolve IPv6 addresses of link-local%ifaddr
Jeremy.
2007-10-25 18:28:36 -07:00
Jeremy Allison
2df8252ff7 Fix a mismatched interface where we were using
uint32 instead of enum lsa_SidType.
Jeremy.
2007-10-25 18:29:49 -07:00
Jeremy Allison
17ea899f39 Fix cast typo - would have broken all dgram sends.
Jeremy.
2007-10-25 18:15:02 -07:00
Jeremy Allison
f982774c8d Fixed missing in_addr -> sockaddr_storage conversion (how did
I miss this...).
Jeremy.
2007-10-25 18:11:29 -07:00
Jeremy Allison
a13e8bd39d Fix reversed bool check for access. Found by kukks.
Thanks !
Jeremy.
2007-10-25 17:17:46 -07:00
Jeremy Allison
ec891be53c Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test 2007-10-25 16:22:40 -07:00
Jeremy Allison
9aa9ecd8cc When doing reverse lookups actually look up the name, not
just the numeric address (doh!) :-).
Jeremy.
2007-10-25 16:14:52 -07:00
Jeremy Allison
a68bbea0d4 Try and fix the Solaris build by adding a missing define
(from Jerry).
Jeremy
2007-10-25 15:43:44 -07:00
Jeremy Allison
2ec6224b55 Ensure we don't terminate if we fail to bind to a socket,
only fail if we can't bind to any socket.
Jeremy.
2007-10-25 14:11:35 -07:00
metze
11a977aa07 [libreplace] define AI_NUMERICSERV as it's used in getaddrinfo.c
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25728 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-10-25 15:55:47 +02:00
metze
de01c503f4 [libreplace] move and fix getaddrinfo configure checks
- 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
2007-10-25 15:55:19 +02:00
metze
e56977ea45 - include getaddrinfo.h after we have defined struct addrinfo
- 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
2007-10-25 15:53:44 +02:00
metze
b81d8bc43c [libreplace] if we replace types define the HAVE_<type> macro
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
2007-10-25 15:53:09 +02:00
metze
4515007567 [libreplace] move definition of struct addrinfo so that it can use socklen_t
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25715 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-10-25 15:52:59 +02:00
metze
fa120f7c50 [libreplace] move define of a constant to near to the others
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25714 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-10-25 15:52:47 +02:00
metze
f1d434a132 [libreplace] include socket_wrapper.h after we have typedef'ed socklen_t
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25713 0c0555d6-39d7-0310-84fc-f1cc0bd64818
2007-10-25 15:51:51 +02:00
Jeremy Allison
d04a8a6cdc Don't terminate on an invalid address family.
Jeremy.
2007-10-24 16:11:01 -07:00
Jeremy Allison
bc9008aa1d We do support name lookups for host and service in our replacement
code - remove the restrictions from the original Postgres code.
Jeremy.
2007-10-24 14:40:24 -07:00
Jeremy Allison
98e154c312 This is a large patch (sorry). Migrate from struct in_addr
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.
2007-10-24 14:16:54 -07:00