samba.git
11 years agotevent: change version to 0.9.16 tevent-0.9.16
Stefan Metzmacher [Fri, 8 Jun 2012 10:50:21 +0000 (12:50 +0200)]
tevent: change version to 0.9.16

This adds tevent_*_trace_*() and tevent_context_init_ops()

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Jun  8 20:47:41 CEST 2012 on sn-devel-104

11 years agotevent: expose tevent_context_init_ops
Stefan Metzmacher [Fri, 11 May 2012 13:19:55 +0000 (15:19 +0200)]
tevent: expose tevent_context_init_ops

This can be used to implement wrapper backends,
while passing a private pointer to the backens init function
via ev->additional_data.

metze

11 years agolib/tevent: Add trace point callback
Martin Schwenke [Tue, 5 Jun 2012 06:00:07 +0000 (16:00 +1000)]
lib/tevent: Add trace point callback

Set/get a single callback function to be invoked at various trace
points.  Define "before wait" and "after wait" trace points - more
trace points can be added later if required.

CTDB wants this to log long waits and events.

Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>
Signed-off-by: Martin Schwenke <martin@meltin.net>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agolib/tevent: In poll_event_context, add a pointer back to the tevent_context
Martin Schwenke [Thu, 7 Jun 2012 02:26:02 +0000 (12:26 +1000)]
lib/tevent: In poll_event_context, add a pointer back to the tevent_context

This makes it consistent with the other backends.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agos3:smbd: remove unnecessary variable readret from read_file()
Michael Adam [Fri, 8 Jun 2012 14:06:24 +0000 (16:06 +0200)]
s3:smbd: remove unnecessary variable readret from read_file()

Pair-Programmed-With: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri Jun  8 18:08:09 CEST 2012 on sn-devel-104

11 years agos3:smbd: remove ancient DMF_FIX from read_file().
Michael Adam [Fri, 8 Jun 2012 12:23:09 +0000 (14:23 +0200)]
s3:smbd: remove ancient DMF_FIX from read_file().

Pair-Programmed-With: Volker Lendecke <vl@samba.org>

11 years agobuild: do not run fsrvp tests as part of selftest
David Disseldorp [Tue, 5 Jun 2012 18:02:04 +0000 (20:02 +0200)]
build: do not run fsrvp tests as part of selftest

Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Fri Jun  8 15:24:45 CEST 2012 on sn-devel-104

11 years agos4-torture: fsrvp test suite
David Disseldorp [Fri, 9 Mar 2012 15:02:19 +0000 (16:02 +0100)]
s4-torture: fsrvp test suite

Covers most operations defined by the File Server Remote VSS Protocol.

11 years agodoc: add FSRVP commands to rpcclient man page
David Disseldorp [Tue, 3 Apr 2012 12:17:35 +0000 (14:17 +0200)]
doc: add FSRVP commands to rpcclient man page

11 years agos3-rpcclient: add fsrvp commands
David Disseldorp [Mon, 26 Mar 2012 15:34:52 +0000 (17:34 +0200)]
s3-rpcclient: add fsrvp commands

fss_create_expose connects to an FSRVP server and negotiates the
creation and exposure of a share shadow-copy.
shadow-copies of multiple shares can be requested with a single
fss_create_expose request.

ddiss@plati:~> bin/rpcclient -k -U 'LURCH\administrator%password' \
                             ncacn_np:lutze[sign]
rpcclient $> fss_create_expose backup ro hyper
381884f2-b578-45ea-b8d2-cf82491f4011: shadow-copy set created
...
share hyper@{B6137E21-9CBB-4547-A21D-E7AD40D0874B} exposed as a snapshot
of \\lutze\hyper

fss_delete removes the shadow-copy share:
rpcclient $> fss_delete hyper 381884f2-b578-45ea-b8d2-cf82491f4011 \
                        b6137e21-9cbb-4547-a21d-e7ad40d0874

Shadow-copies can be created read-write or read-only.
Experimenting with Windows Server "8" beta, a recovery complete call is
required after creating a read-write (ATTR_AUTO_RECOVERY) shadow copy.
Otherwise subsequent creation requests fail with
FSRVP_E_SHADOW_COPY_SET_IN_PROGRESS.

11 years agoidl: add File Server Remote VSS Protocol idl
David Disseldorp [Tue, 21 Feb 2012 13:04:42 +0000 (14:04 +0100)]
idl: add File Server Remote VSS Protocol idl

MS-FSRVP preview documents used as reference.
H_ERROR codes should be moved to a more generic file.

11 years agosamba_util: mark smb_panic as _NORETURN_.
Rusty Russell [Thu, 7 Jun 2012 22:38:00 +0000 (08:08 +0930)]
samba_util: mark smb_panic as _NORETURN_.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date(master): Fri Jun  8 09:14:26 CEST 2012 on sn-devel-104

11 years agos3-winbindd: call dump_core_setup after command line option has been parsed
Matthieu Patou [Fri, 1 Jun 2012 22:33:04 +0000 (15:33 -0700)]
s3-winbindd: call dump_core_setup after command line option has been parsed

Without this fix in some situations winbindd can't coredump.
Such cases append when samba is compiled in a custom prefix (ie.
/home/build/mat/prod/1/) in this case get_dyn_LOGFILEBASE or basename(lp_logfile)
before the configuration file and the command line is parsed will be something like /home/build/mat/prod/1/var
which might not exists on the host where you run it (where it's most
probably more "normal" directories).
Specifying --log-basename didn't help as dump_core_setup is called before the command line and
the config file is read so it didn't help getting a correct value in dump_core_setup.
We fix this issue by calling dump_core_setup() also after the command
line has been read and also after the configfile has been parsed so that
the final location for the coredump is coherent with the final logile
location.

Autobuild-User(master): Matthieu Patou <mat@samba.org>
Autobuild-Date(master): Fri Jun  8 06:33:33 CEST 2012 on sn-devel-104

11 years agos3-waf: Fix the winbindd active directory idmap support build.
Ira Cooper [Fri, 8 Jun 2012 00:34:33 +0000 (20:34 -0400)]
s3-waf: Fix the winbindd active directory idmap support build.

This fixes the SAMBA3_MODULE for idmap_ad so it will actually attempt to build.

Autobuild-User(master): Ira Cooper <ira@samba.org>
Autobuild-Date(master): Fri Jun  8 04:38:04 CEST 2012 on sn-devel-104

11 years agobuild: try to fix large file support for AIX
Björn Jacke [Thu, 7 Jun 2012 20:43:43 +0000 (22:43 +0200)]
build: try to fix large file support for AIX

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Fri Jun  8 00:37:00 CEST 2012 on sn-devel-104

11 years agoccan: Only build ccan-failtest when we are in developer mode
Andrew Bartlett [Thu, 7 Jun 2012 13:07:52 +0000 (22:37 +0930)]
ccan: Only build ccan-failtest when we are in developer mode

From: Andrew Bartlett <abartlet@samba.org>

This code is incredibly useful, but is only needed in test code and may not be
perfectly portable.  It has compiled on all systems bar Solaris so far, but
rather than make it a requirement to build Samba, just keep it for development.

Andrew Bartlett

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date(master): Thu Jun  7 18:53:12 CEST 2012 on sn-devel-104

11 years agolib/tdb2: build tests when built at toplevel.
Rusty Russell [Thu, 7 Jun 2012 12:54:07 +0000 (22:24 +0930)]
lib/tdb2: build tests when built at toplevel.

They weren't being built when we were at top-level, because the globs
were wrong.  Just open-code the test names, which always works.

Reported-by: Andrew Bartlett
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
11 years agowaf: fix parsing krb5-config --version for MIT krb5
Alexander Bokovoy [Thu, 7 Jun 2012 11:22:33 +0000 (14:22 +0300)]
waf: fix parsing krb5-config --version for MIT krb5

krb5-config --version may return a string that ends with a suffix after
version number (1.X-prerelease or 1.X-beta1, for example). Detect and
ignore the suffix.

Autobuild-User(master): Alexander Bokovoy <ab@samba.org>
Autobuild-Date(master): Thu Jun  7 17:03:01 CEST 2012 on sn-devel-104

11 years agowaf: support --without-ad-dc for Heimdal (embedded and system) as well
Alexander Bokovoy [Thu, 7 Jun 2012 10:38:20 +0000 (13:38 +0300)]
waf: support --without-ad-dc for Heimdal (embedded and system) as well

--without-ad-dc was hardwired to mean --with-system-mitkrb5. With this change
it also possible to build source3/ code and source4/ client side without
building AD DC functionality using Heimdal (embedded or system).

11 years agobuild: fix typo that breaks the HP-UX build
Björn Jacke [Thu, 7 Jun 2012 08:15:01 +0000 (10:15 +0200)]
build: fix typo that breaks the HP-UX build

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Thu Jun  7 12:49:17 CEST 2012 on sn-devel-104

11 years agobuild: Tidy up broken posix_fallocate tests
Andrew Bartlett [Thu, 7 Jun 2012 04:29:44 +0000 (14:29 +1000)]
build: Tidy up broken posix_fallocate tests

This makes the code and output for in waf and autoconf identical.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Jun  7 08:35:33 CEST 2012 on sn-devel-104

11 years agos4-libcli: Remove unused finddcs_nbt
Andrew Bartlett [Thu, 7 Jun 2012 04:21:25 +0000 (14:21 +1000)]
s4-libcli: Remove unused finddcs_nbt

This would only do the NBT getdc lookup for a single DC (but would
find multiple DCs at first stage), but more particular it of course
uses Netbios rather than DNS names.

In any case it was also unused, as we use CLDAP for reliable DC
location these days.

Found by callcatcher

Andrew Bartlett

11 years agobuild: Add missing deps and make MESSAGING a private library
Andrew Bartlett [Thu, 7 Jun 2012 04:19:43 +0000 (14:19 +1000)]
build: Add missing deps and make MESSAGING a private library

To remove finddcs_nbt these missing deps need to be added.  These
subsystems linked to to implicit dependencies provided by finddcs.
Due to the new arrangmenet of subsystems, MESSAGING needs to be a
private library to avoid being a source of duplicate symbols.

Andrew Bartlett

11 years agoutil: fix build on platforms without IPv6 support
Björn Jacke [Wed, 6 Jun 2012 19:37:46 +0000 (21:37 +0200)]
util: fix build on platforms without IPv6 support

something like this on World IPv6 Day II ... ;-)

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Thu Jun  7 03:09:49 CEST 2012 on sn-devel-104

11 years agos3: enable winbind also for upcoming FreeBSD/NetBSD releases >=10
Björn Jacke [Wed, 6 Jun 2012 11:20:08 +0000 (13:20 +0200)]
s3: enable winbind also for upcoming FreeBSD/NetBSD releases >=10

11 years agoscript/commit_mark.sh: add the current branch name
Stefan Metzmacher [Wed, 6 Jun 2012 11:35:31 +0000 (13:35 +0200)]
script/commit_mark.sh: add the current branch name

This will be useful once we have autobuild for a v4-0-test
branch and want to cherry-pick commits from master

metze

Autobuild-User(master-autobuild): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master-autobuild): Mi 6. Jun 13:42:53 CEST 2012 on SERNOX11

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Jun  7 01:18:55 CEST 2012 on sn-devel-104

11 years agos3:include: change lock_struct->fnum to uint64_t
Michael Adam [Wed, 6 Jun 2012 13:42:48 +0000 (15:42 +0200)]
s3:include: change lock_struct->fnum to uint64_t

Note: this changes the format of brlock.tdb!

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Jun  6 23:22:00 CEST 2012 on sn-devel-104

11 years agos3:include: change lock_context->tid to uint32_t
Michael Adam [Wed, 6 Jun 2012 13:33:58 +0000 (15:33 +0200)]
s3:include: change lock_context->tid to uint32_t

Note: this changes for format of brlock.tdb!

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

11 years agos3:include: change connection_struct->cnum to uint32_t
Michael Adam [Wed, 6 Jun 2012 13:28:14 +0000 (15:28 +0200)]
s3:include: change connection_struct->cnum to uint32_t

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

11 years agos3:include: change smb_request->tid to uint32_t
Michael Adam [Wed, 6 Jun 2012 13:26:05 +0000 (15:26 +0200)]
s3:include: change smb_request->tid to uint32_t

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

11 years agos3:smb: change the value of TID_FIELD_INVALID from -1 to 0
Michael Adam [Wed, 6 Jun 2012 13:23:55 +0000 (15:23 +0200)]
s3:smb: change the value of TID_FIELD_INVALID from -1 to 0

This paves the way to change the tid/cnum types to systematic uint32_t.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

11 years agos3:smb: introduce a name TID_FIELD_INVALID for the invalid value for a cnum/tid
Michael Adam [Wed, 6 Jun 2012 13:22:31 +0000 (15:22 +0200)]
s3:smb: introduce a name TID_FIELD_INVALID for the invalid value for a cnum/tid

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

11 years agos3:connections: add a CNUM_OFFSET for mapping between cnum and the bitmap index
Michael Adam [Wed, 6 Jun 2012 13:12:08 +0000 (15:12 +0200)]
s3:connections: add a CNUM_OFFSET for mapping between cnum and the bitmap index

This moves the start of the range of valid cnum values up from 0 to CNUM_OFFSET
(currently 1), so that in a later step we can use 0 as invalid cnum value
instead of the current -1. This will allow us to change the type of cnum to
uint32_t from a mix of int and unsigned.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

11 years agos3:smb.h: fix a comment typo
Michael Adam [Wed, 6 Jun 2012 12:51:13 +0000 (14:51 +0200)]
s3:smb.h: fix a comment typo

11 years agos4:dns-server: remove an extra blank line from handle_question()
Michael Adam [Thu, 31 May 2012 18:51:29 +0000 (20:51 +0200)]
s4:dns-server: remove an extra blank line from handle_question()

11 years agoauth-kerberos: avoid crash with MIT krb5 1.10.0 in gss_get_name_attribute()
Alexander Bokovoy [Wed, 6 Jun 2012 13:52:18 +0000 (16:52 +0300)]
auth-kerberos: avoid crash with MIT krb5 1.10.0 in gss_get_name_attribute()

gss_get_name_attribute() can return unintialized pac_display_buffer
and later gss_release_buffer() will crash on attempting to release it.

The fix on MIT krb5 side is in 1.10.1, reported in both Debian and MIT upstream:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=658514
http://krbdev.mit.edu/rt/Ticket/Display.html?user=guest&pass=guest&id=7087

We need to initialize variables before using gss_get_name_attribute()

Autobuild-User: Alexander Bokovoy <ab@samba.org>
Autobuild-Date: Wed Jun  6 18:22:51 CEST 2012 on sn-devel-104

11 years agos4 dns: Correctly handle A questions for CNAMEs
Kai Blin [Fri, 1 Jun 2012 06:05:54 +0000 (08:05 +0200)]
s4 dns: Correctly handle A questions for CNAMEs

When an A/AAAA lookup is made for a name that actually is a CNAME
record, we need to return the CNAME record, and then do the A/AAAA
lookup for the name the CNAME points at.

This still fails for CNAMEs pointing at records for domains we need to
ask our forwarders for.

Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Wed Jun  6 15:23:55 CEST 2012 on sn-devel-104

11 years agos4 dns: Structure tests a bit better
Kai Blin [Wed, 30 May 2012 06:08:53 +0000 (08:08 +0200)]
s4 dns: Structure tests a bit better

11 years agos3:smbd: change user_struct->vuid to uint64_t
Stefan Metzmacher [Tue, 5 Jun 2012 16:17:15 +0000 (18:17 +0200)]
s3:smbd: change user_struct->vuid to uint64_t

Only sconn->smb1.sessions.next_vuid remains as uint16_t,
so that we do not generate larger values yet.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jun  6 12:07:33 CEST 2012 on sn-devel-104

11 years agos3:smbd: let file_close_pid/file_close_user take a uint64_t vuid
Stefan Metzmacher [Tue, 5 Jun 2012 16:23:14 +0000 (18:23 +0200)]
s3:smbd: let file_close_pid/file_close_user take a uint64_t vuid

metze

11 years agos3:smbd: pass down vuid as uint64_t in lanman.c
Stefan Metzmacher [Tue, 5 Jun 2012 14:34:27 +0000 (16:34 +0200)]
s3:smbd: pass down vuid as uint64_t in lanman.c

metze

11 years agos3:smbd: pass down vuid as uint64_t in ipc.c
Stefan Metzmacher [Tue, 5 Jun 2012 14:27:09 +0000 (16:27 +0200)]
s3:smbd: pass down vuid as uint64_t in ipc.c

metze

11 years agos3:smbd: change vuid to uint64_t in uid.c
Stefan Metzmacher [Tue, 5 Jun 2012 14:19:01 +0000 (16:19 +0200)]
s3:smbd: change vuid to uint64_t in uid.c

metze

11 years agos3:smbd: let fcb_or_dos_open() take a uint64_t vuid
Stefan Metzmacher [Tue, 5 Jun 2012 14:09:53 +0000 (16:09 +0200)]
s3:smbd: let fcb_or_dos_open() take a uint64_t vuid

metze

11 years agos3:smbd: let close_cnum() take a uint64_t vuid
Stefan Metzmacher [Tue, 5 Jun 2012 14:07:13 +0000 (16:07 +0200)]
s3:smbd: let close_cnum() take a uint64_t vuid

metze

11 years agos3:smbd: use UID_FIELD_INVALID (0) instead of (uint16)-1 when calling close_cnum()
Stefan Metzmacher [Tue, 5 Jun 2012 14:01:56 +0000 (16:01 +0200)]
s3:smbd: use UID_FIELD_INVALID (0) instead of (uint16)-1 when calling close_cnum()

The only thing that's important is that the value is invalid.

metze

11 years agos3:smbd: let make_connection() take a uint64_t vuid
Stefan Metzmacher [Tue, 5 Jun 2012 13:56:46 +0000 (15:56 +0200)]
s3:smbd: let make_connection() take a uint64_t vuid

metze

11 years agos3:smbd: let conn_clear_vuid_caches() take a uint64_t vuid
Stefan Metzmacher [Tue, 5 Jun 2012 13:50:21 +0000 (15:50 +0200)]
s3:smbd: let conn_clear_vuid_caches() take a uint64_t vuid

metze

11 years agos3:smbd: let open_fake_file() take a uint64_t vuid
Stefan Metzmacher [Tue, 5 Jun 2012 13:39:44 +0000 (15:39 +0200)]
s3:smbd: let open_fake_file() take a uint64_t vuid

metze

11 years agos3:printing: let print_spool_open() take a uint64_t vuid
Stefan Metzmacher [Tue, 5 Jun 2012 13:35:11 +0000 (15:35 +0200)]
s3:printing: let print_spool_open() take a uint64_t vuid

metze

11 years agos3:smbd: change conn_ctx->vuid to uint64_t
Stefan Metzmacher [Tue, 5 Jun 2012 13:27:38 +0000 (15:27 +0200)]
s3:smbd: change conn_ctx->vuid to uint64_t

metze

11 years agos3:include: change current_user->vuid to uint64_t
Stefan Metzmacher [Tue, 5 Jun 2012 13:21:52 +0000 (15:21 +0200)]
s3:include: change current_user->vuid to uint64_t

metze

11 years agos3:smbd: change trans_state->vuid to uint64_t
Stefan Metzmacher [Tue, 5 Jun 2012 13:14:04 +0000 (15:14 +0200)]
s3:smbd: change trans_state->vuid to uint64_t

metze

11 years agos3:include: change smb_request->vuid to uint64_t
Stefan Metzmacher [Tue, 5 Jun 2012 12:40:57 +0000 (14:40 +0200)]
s3:include: change smb_request->vuid to uint64_t

metze

11 years agos3:include: move struct smb_request to vfs.h
Stefan Metzmacher [Tue, 5 Jun 2012 11:39:49 +0000 (13:39 +0200)]
s3:include: move struct smb_request to vfs.h

metze

11 years agos3:include: change files_struct->vuid to uint64_t
Stefan Metzmacher [Tue, 5 Jun 2012 11:17:26 +0000 (13:17 +0200)]
s3:include: change files_struct->vuid to uint64_t

metze

11 years agos3:include: change connection_struct->vuid to uint64_t
Stefan Metzmacher [Tue, 5 Jun 2012 11:05:43 +0000 (13:05 +0200)]
s3:include: change connection_struct->vuid to uint64_t

metze

11 years agos3:includes: change vuid_cache_entry->vuid to uint64_t
Stefan Metzmacher [Mon, 4 Jun 2012 12:37:45 +0000 (14:37 +0200)]
s3:includes: change vuid_cache_entry->vuid to uint64_t

metze

11 years agos3:include: move sys_acl prototypes to smb_acls.h
Stefan Metzmacher [Tue, 5 Jun 2012 10:33:52 +0000 (12:33 +0200)]
s3:include: move sys_acl prototypes to smb_acls.h

metze

11 years agos3:smbd: move struct user_struct to globals.h
Stefan Metzmacher [Tue, 5 Jun 2012 10:07:43 +0000 (12:07 +0200)]
s3:smbd: move struct user_struct to globals.h

metze

11 years agos3:include: remove typedef user_struct
Stefan Metzmacher [Tue, 5 Jun 2012 10:06:11 +0000 (12:06 +0200)]
s3:include: remove typedef user_struct

metze

11 years agos3:smbd: use 'struct user_struct' instead of typedef'ed 'user_struct'
Stefan Metzmacher [Tue, 5 Jun 2012 10:04:15 +0000 (12:04 +0200)]
s3:smbd: use 'struct user_struct' instead of typedef'ed 'user_struct'

metze

11 years agos3:smbd: move forward declaration of struct aio_extra to smbd.h
Stefan Metzmacher [Tue, 5 Jun 2012 08:54:40 +0000 (10:54 +0200)]
s3:smbd: move forward declaration of struct aio_extra to smbd.h

metze

11 years agos3:printing: use smbd/smbd.h instead of just smbd/proto.h in queue_process.c
Stefan Metzmacher [Tue, 5 Jun 2012 12:53:01 +0000 (14:53 +0200)]
s3:printing: use smbd/smbd.h instead of just smbd/proto.h in queue_process.c

This fixes compiler warnings regarding incomplete types.

metze

11 years agos3:torture: use smbd/smbd.h instead of just smbd/proto.h in vfstest_chain.c
Stefan Metzmacher [Tue, 5 Jun 2012 12:51:30 +0000 (14:51 +0200)]
s3:torture: use smbd/smbd.h instead of just smbd/proto.h in vfstest_chain.c

This fixes compiler warnings regarding incomplete types.

metze

11 years agos3:utils: use smbd/smbd.h instead of just smbd/proto.h
Stefan Metzmacher [Tue, 5 Jun 2012 12:50:23 +0000 (14:50 +0200)]
s3:utils: use smbd/smbd.h instead of just smbd/proto.h

This fixes compiler warnings regarding incomplete types.

metze

11 years agos3:modules: we don't need smbd/proto.h in vfs_shadow_copy2.c
Stefan Metzmacher [Tue, 5 Jun 2012 12:47:52 +0000 (14:47 +0200)]
s3:modules: we don't need smbd/proto.h in vfs_shadow_copy2.c

metze

11 years agos3:lib: we don't need smbd/proto.h in smbd_shim.c
Stefan Metzmacher [Tue, 5 Jun 2012 12:47:00 +0000 (14:47 +0200)]
s3:lib: we don't need smbd/proto.h in smbd_shim.c

metze

11 years agoexamples/VFS: don't use smbd/proto.h
Stefan Metzmacher [Tue, 5 Jun 2012 09:53:47 +0000 (11:53 +0200)]
examples/VFS: don't use smbd/proto.h

metze

11 years agos3:include: move some prototypes (e.g. smb_register_vfs) to vfs.h
Stefan Metzmacher [Tue, 5 Jun 2012 09:50:53 +0000 (11:50 +0200)]
s3:include: move some prototypes (e.g. smb_register_vfs) to vfs.h

These are called from vfs modules, which should not depend on smbd/proto.h

metze

11 years agos3:include: remove unused forward declaration of deferred_open_record in smb.h
Stefan Metzmacher [Tue, 5 Jun 2012 08:53:05 +0000 (10:53 +0200)]
s3:include: remove unused forward declaration of deferred_open_record in smb.h

metze

11 years agos3:smbd: move UCF_ defines to smbd.h
Stefan Metzmacher [Tue, 5 Jun 2012 08:48:57 +0000 (10:48 +0200)]
s3:smbd: move UCF_ defines to smbd.h

metze

11 years agos3:include: move struct smb_filename to vfs.h
Stefan Metzmacher [Tue, 5 Jun 2012 08:38:48 +0000 (10:38 +0200)]
s3:include: move struct smb_filename to vfs.h

metze

11 years agos3:include: move struct smb_file_time to vfs.h
Stefan Metzmacher [Tue, 5 Jun 2012 08:37:34 +0000 (10:37 +0200)]
s3:include: move struct smb_file_time to vfs.h

metze

11 years agos3:include: move struct connection_struct (and sub structs) to vfs.h
Stefan Metzmacher [Tue, 5 Jun 2012 08:28:49 +0000 (10:28 +0200)]
s3:include: move struct connection_struct (and sub structs) to vfs.h

metze

11 years agos3:include: move struct stream_struct to vfs.h
Stefan Metzmacher [Tue, 5 Jun 2012 08:17:57 +0000 (10:17 +0200)]
s3:include: move struct stream_struct to vfs.h

metze

11 years agos3:include: move struct fd_handle/files_struct to vfs.h
Stefan Metzmacher [Tue, 5 Jun 2012 08:13:45 +0000 (10:13 +0200)]
s3:include: move struct fd_handle/files_struct to vfs.h

metze

11 years agos3:includes: move union unid_t to vfs.h
Stefan Metzmacher [Tue, 5 Jun 2012 08:10:17 +0000 (10:10 +0200)]
s3:includes: move union unid_t to vfs.h

metze

11 years agos3:smbd: move struct trans_state to smbd.h
Stefan Metzmacher [Tue, 5 Jun 2012 08:00:06 +0000 (10:00 +0200)]
s3:smbd: move struct trans_state to smbd.h

metze

11 years agos3:smbd: move struct privilege_paths to smbd.h
Stefan Metzmacher [Tue, 5 Jun 2012 07:51:02 +0000 (09:51 +0200)]
s3:smbd: move struct privilege_paths to smbd.h

metze

11 years agos3:smbd: make struct notify_change_buf private to notify.c
Stefan Metzmacher [Tue, 5 Jun 2012 07:38:05 +0000 (09:38 +0200)]
s3:smbd: make struct notify_change_buf private to notify.c

metze

11 years agos3:smbd: make use of change_notify_fsp_has_changes()
Stefan Metzmacher [Tue, 5 Jun 2012 07:37:39 +0000 (09:37 +0200)]
s3:smbd: make use of change_notify_fsp_has_changes()

metze

11 years agos3:smbd: add change_notify_fsp_has_changes()
Stefan Metzmacher [Tue, 5 Jun 2012 07:36:36 +0000 (09:36 +0200)]
s3:smbd: add change_notify_fsp_has_changes()

metze

11 years agos3:printing: add print_spool_rap_jobid()
Stefan Metzmacher [Tue, 5 Jun 2012 06:29:56 +0000 (08:29 +0200)]
s3:printing: add print_spool_rap_jobid()

metze

11 years agos3:printing: make struct print_file_data private to printspoolss.c
Stefan Metzmacher [Mon, 4 Jun 2012 16:15:25 +0000 (18:15 +0200)]
s3:printing: make struct print_file_data private to printspoolss.c

metze

11 years agos3:smbd: use print_spool_rap_jobid() in call_trans2ioctl()
Stefan Metzmacher [Tue, 5 Jun 2012 06:42:53 +0000 (08:42 +0200)]
s3:smbd: use print_spool_rap_jobid() in call_trans2ioctl()

metze

11 years agos3:smbd: use print_spool_rap_jobid() in reply_ioctl()
Stefan Metzmacher [Tue, 5 Jun 2012 06:33:53 +0000 (08:33 +0200)]
s3:smbd: use print_spool_rap_jobid() in reply_ioctl()

metze

11 years agos3:smbd: fcb_or_dos_open() can be static
Stefan Metzmacher [Mon, 4 Jun 2012 16:13:55 +0000 (18:13 +0200)]
s3:smbd: fcb_or_dos_open() can be static

metze

11 years agos3:smbd: dup_file_fsp() never gets called for print files
Stefan Metzmacher [Mon, 4 Jun 2012 16:10:51 +0000 (18:10 +0200)]
s3:smbd: dup_file_fsp() never gets called for print files

metze

11 years agos3:smbd: make struct vfs_fsp_data private to vfs.c
Stefan Metzmacher [Mon, 4 Jun 2012 15:57:36 +0000 (17:57 +0200)]
s3:smbd: make struct vfs_fsp_data private to vfs.c

metze

11 years agos3:smbd: make use of vfs_remove_all_fsp_extensions() in file_free()
Stefan Metzmacher [Mon, 4 Jun 2012 15:55:28 +0000 (17:55 +0200)]
s3:smbd: make use of vfs_remove_all_fsp_extensions() in file_free()

metze

11 years agos3:smbd: add vfs_remove_all_fsp_extensions()
Stefan Metzmacher [Mon, 4 Jun 2012 15:54:41 +0000 (17:54 +0200)]
s3:smbd: add vfs_remove_all_fsp_extensions()

metze

11 years agos3:includes: move struct share_mode_lock to locking.h
Stefan Metzmacher [Mon, 4 Jun 2012 15:43:13 +0000 (17:43 +0200)]
s3:includes: move struct share_mode_lock to locking.h

metze

11 years agos3:smbd: remove typedef for struct write_cache
Stefan Metzmacher [Mon, 4 Jun 2012 12:48:09 +0000 (14:48 +0200)]
s3:smbd: remove typedef for struct write_cache

metze

11 years agos3:smbd: make typedef write_cache private to fileio.c
Stefan Metzmacher [Mon, 4 Jun 2012 12:46:31 +0000 (14:46 +0200)]
s3:smbd: make typedef write_cache private to fileio.c

metze

11 years agos3-libsmb: Fix error messages to correctly mention PLAINTEXT not LM
Andrew Bartlett [Wed, 6 Jun 2012 06:22:50 +0000 (16:22 +1000)]
s3-libsmb: Fix error messages to correctly mention PLAINTEXT not LM

Also make all the message say the same thing.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Jun  6 10:17:55 CEST 2012 on sn-devel-104

11 years agobuild: Rationalise AIO support in configure, ensure on by default
Andrew Bartlett [Tue, 5 Jun 2012 23:23:22 +0000 (09:23 +1000)]
build: Rationalise AIO support in configure, ensure on by default

With this change, the define to check for AIO is HAVE_AIO, consistant
with other subsystems.

It is now also on by default in the autoconf build, as it has been for waf.

Andrew Bartlett

11 years agolib/replace: Fix snprintf() override for systems with a broken snprintf()
Andrew Bartlett [Tue, 5 Jun 2012 13:27:58 +0000 (23:27 +1000)]
lib/replace: Fix snprintf() override for systems with a broken snprintf()

This ensures we provide the replacement functions that we need.

Andrew Bartlett

11 years agos3: temporary hack to make the waf build work withouth autotools being required
Björn Jacke [Tue, 5 Jun 2012 19:56:19 +0000 (21:56 +0200)]
s3: temporary hack to make the waf build work withouth autotools being required

this also disables the examples/VFS build for waf now. Finally we should create a
wscript file for examples/VFS.

Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Tue Jun  5 23:56:22 CEST 2012 on sn-devel-104

11 years agos3:lib: split things into a conn_tdb.h
Stefan Metzmacher [Mon, 4 Jun 2012 13:32:28 +0000 (15:32 +0200)]
s3:lib: split things into a conn_tdb.h

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jun  5 19:28:35 CEST 2012 on sn-devel-104