kai/samba-autobuild/.git
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

11 years agos3:libsmb: fix the talloc parent of clistr_pull_talloc() in cli_notify_done()
Stefan Metzmacher [Mon, 4 Jun 2012 16:30:11 +0000 (18:30 +0200)]
s3:libsmb: fix the talloc parent of clistr_pull_talloc() in cli_notify_done()

metze

11 years agos3:libsmb: change cli_sesssetup_blob_* to use uint8_t instead of char for inbuf
Stefan Metzmacher [Mon, 4 Jun 2012 14:40:42 +0000 (16:40 +0200)]
s3:libsmb: change cli_sesssetup_blob_* to use uint8_t instead of char for inbuf

metze

11 years agos3:libsmb: use inhdr instead of inbuf in tree connect related functions
Stefan Metzmacher [Mon, 4 Jun 2012 14:26:27 +0000 (16:26 +0200)]
s3:libsmb: use inhdr instead of inbuf in tree connect related functions

metze

11 years agos3:libsmb: use inhdr instead of inbuf in session setup related functions
Stefan Metzmacher [Mon, 4 Jun 2012 14:26:27 +0000 (16:26 +0200)]
s3:libsmb: use inhdr instead of inbuf in session setup related functions

metze

11 years agos3:libsmb: remove unused 'inbuf' variable
Stefan Metzmacher [Mon, 4 Jun 2012 13:59:42 +0000 (15:59 +0200)]
s3:libsmb: remove unused 'inbuf' variable

metze

11 years agos3:libsmb: don't require a pinbuf in cli_smb_recv() to keep the memory
Stefan Metzmacher [Mon, 4 Jun 2012 13:53:52 +0000 (15:53 +0200)]
s3:libsmb: don't require a pinbuf in cli_smb_recv() to keep the memory

metze

11 years agos4:torture/locktest: fix compiler warning
Stefan Metzmacher [Mon, 28 May 2012 13:25:24 +0000 (15:25 +0200)]
s4:torture/locktest: fix compiler warning

metze

11 years agos3: remove dependency on automake for "make everything"
Björn Jacke [Tue, 5 Jun 2012 13:37:00 +0000 (15:37 +0200)]
s3: remove dependency on automake for "make everything"

the dependency was introduced by 737a1c9b96a4ba8d8688f4dba1df6d931e10e64d

We now call auto* in examples/VFS from within the main autogen.sh.

This fixes bug #8978.

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

11 years agoVERSION: mark as beta2 as we move on to the next release
Andrew Bartlett [Tue, 5 Jun 2012 03:43:08 +0000 (13:43 +1000)]
VERSION: mark as beta2 as we move on to the next release

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Jun  5 11:38:21 CEST 2012 on sn-devel-104

11 years agoVERSION: Mark release as beta1 samba-4.0.0beta1
Andrew Bartlett [Tue, 5 Jun 2012 03:27:42 +0000 (13:27 +1000)]
VERSION: Mark release as beta1

11 years agobuild: Add newlines for clarity
Andrew Bartlett [Tue, 5 Jun 2012 04:39:15 +0000 (14:39 +1000)]
build: Add newlines for clarity

11 years agobuild: Add test for HAVE_BROKEN_POSIX_FALLOCATE to waf build
Andrew Bartlett [Tue, 5 Jun 2012 04:35:15 +0000 (14:35 +1000)]
build: Add test for HAVE_BROKEN_POSIX_FALLOCATE to waf build

This was previously only in the autoconf build, added in 3264a98f.

Andrew Bartlett

11 years agobuild: Remove unused check for HAVE_UNSIGNED_CHAR
Andrew Bartlett [Tue, 5 Jun 2012 04:02:44 +0000 (14:02 +1000)]
build: Remove unused check for HAVE_UNSIGNED_CHAR

BTW, uint8_t check is in libreplace for both build systems.

11 years agoRoadmap: Clarify that 4.0 is our next release
Andrew Bartlett [Tue, 5 Jun 2012 03:42:23 +0000 (13:42 +1000)]
Roadmap: Clarify that 4.0 is our next release

11 years agoWHATSNEW: Add details on NTP and DNS as new protocols we cover
Andrew Bartlett [Tue, 5 Jun 2012 03:21:13 +0000 (13:21 +1000)]
WHATSNEW: Add details on NTP and DNS as new protocols we cover

11 years agoTests for bug #8972 - Add permission checks to run_simple_posix_open_test().
Jeremy Allison [Tue, 5 Jun 2012 03:45:34 +0000 (20:45 -0700)]
Tests for bug #8972 - Add permission checks to run_simple_posix_open_test().

This requires a share with :

create mask = 0777
force create mode = 0
directory mask = 0777
force directory mode = 0

set so we don't mess with requested permissions.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Jun  5 08:20:03 CEST 2012 on sn-devel-104

11 years agoTests for bug #8972 - run the POSIX tests against the posix_share.
Jeremy Allison [Tue, 5 Jun 2012 03:44:56 +0000 (20:44 -0700)]
Tests for bug #8972 - run the POSIX tests against the posix_share.

11 years agoTests for bug #8972 - Add a posix_share definition to s4 so we can do raw posix permi...
Jeremy Allison [Tue, 5 Jun 2012 03:44:08 +0000 (20:44 -0700)]
Tests for bug #8972 - Add a posix_share definition to s4 so we can do raw posix permissions checks.

11 years agoTests for bug #8972 - Add a posix_share definition to s3 so we can do raw posix permi...
Jeremy Allison [Tue, 5 Jun 2012 03:43:09 +0000 (20:43 -0700)]
Tests for bug #8972 - Add a posix_share definition to s3 so we can do raw posix permissions checks.

11 years agowintest: Fix test-s3.py to use smbclient3 under the name smbclient
Andrew Bartlett [Tue, 5 Jun 2012 01:51:18 +0000 (11:51 +1000)]
wintest: Fix test-s3.py to use smbclient3 under the name smbclient

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Jun  5 06:24:39 CEST 2012 on sn-devel-104

11 years agoWHATSNEW: mention FreeBSD getaddrinfo() issue
Andrew Bartlett [Tue, 5 Jun 2012 01:41:52 +0000 (11:41 +1000)]
WHATSNEW: mention FreeBSD getaddrinfo() issue

11 years agos3:build(autoconf): fix "no AC_LANG_SOURCE call detected" warnings
Martin Schwenke [Fri, 16 Dec 2011 01:43:34 +0000 (12:43 +1100)]
s3:build(autoconf): fix "no AC_LANG_SOURCE call detected" warnings

Autoconf 2.68 NEWS says:

** The macros AC_PREPROC_IFELSE, AC_COMPILE_IFELSE, AC_LINK_IFELSE, and
   AC_RUN_IFELSE now warn if the first argument failed to use
   AC_LANG_SOURCE or AC_LANG_PROGRAM to generate the conftest file
   contents.  A new macro AC_LANG_DEFINES_PROVIDED exists if you have
   a compelling reason why you cannot use AC_LANG_SOURCE but must
   avoid the warning.

Signed-off-by: Martin Schwenke <martin@meltin.net>
11 years agoWHATSNEW: Mention trouble with DNS replication
Andrew Bartlett [Tue, 5 Jun 2012 01:15:21 +0000 (11:15 +1000)]
WHATSNEW: Mention trouble with DNS replication

11 years agoWHATSNEW: Note FreeBSD improvements
Andrew Bartlett [Tue, 5 Jun 2012 00:34:27 +0000 (10:34 +1000)]
WHATSNEW: Note FreeBSD improvements

11 years agos4-provision: Test for posix ACLs in the actual sysvol path
Andrew Bartlett [Mon, 4 Jun 2012 23:58:41 +0000 (09:58 +1000)]
s4-provision: Test for posix ACLs in the actual sysvol path

This avoids issues in the previous location where lp may not be initialised at this point
and instead simply waits until we have a known sysvol path, and test for ACL support
there.

Andrew Bartlett

11 years agos4-provision: Place xattr.tdb in the actual state directory
Andrew Bartlett [Mon, 4 Jun 2012 23:56:53 +0000 (09:56 +1000)]
s4-provision: Place xattr.tdb in the actual state directory

This patch does two things: it fixes up the spelling of "state dir" to
"state directory" so that we actually find the smb.conf parameter, and
we move it to after we process the global settings in case this is
changed in the future.

Andrew Bartlett

11 years agoWHATSNEW: Update for beta1
Andrew Bartlett [Mon, 4 Jun 2012 23:21:15 +0000 (09:21 +1000)]
WHATSNEW: Update for beta1

11 years agoVERSION: prepare for beta1 by setting and parsing the beta version
Andrew Bartlett [Mon, 4 Jun 2012 23:07:44 +0000 (09:07 +1000)]
VERSION: prepare for beta1 by setting and parsing the beta version

11 years agoAdd '--use-ntvfs' option to 'samba-tool domain join'
Andriy Syrovenko [Mon, 4 Jun 2012 22:32:42 +0000 (01:32 +0300)]
Add '--use-ntvfs' option to 'samba-tool domain join'

11 years agos3-smbd: Remove support for protocols before LANMAN1
Andrew Bartlett [Wed, 30 May 2012 02:32:56 +0000 (12:32 +1000)]
s3-smbd: Remove support for protocols before LANMAN1

This falls out of the removal of security=share, because we now require that
a session setup has been performed before (essentially) all other operations.

Andrew Bartlett

11 years agoRemove Manifest. The information here was outdated
Andrew Bartlett [Mon, 28 May 2012 03:08:45 +0000 (13:08 +1000)]
Remove Manifest.  The information here was outdated

11 years agolibreplace: Add copyrights to ease tracking of this file in future
Andrew Bartlett [Mon, 4 Jun 2012 22:00:00 +0000 (08:00 +1000)]
libreplace: Add copyrights to ease tracking of this file in future

As GIT didn't realise this was a copy out of lib/system.c, this should
make it easier to track the copyright holders on this file.  Herb's
name wasn't on the original file, but was the only other author I
could find in the git logs.

I've added my copyright here too.

Andrew Bartlett

11 years agolibreplace: Remove autoconf build system
Andrew Bartlett [Sat, 2 Jun 2012 13:51:39 +0000 (23:51 +1000)]
libreplace: Remove autoconf build system

This leaves the parts required to build libreplace as a static lib for the autoconf build

Andrew Bartlett

11 years agoFix bug #8972 - Directory group write permission bit is set if unix extensions are...
Jeremy Allison [Tue, 5 Jun 2012 00:34:54 +0000 (17:34 -0700)]
Fix bug #8972 - Directory group write permission bit is set if unix extensions are enabled

We can't manipulate file_attributes if it's a posix call. I'll look
at adding a test for this asap.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Jun  5 04:26:11 CEST 2012 on sn-devel-104

11 years agolibreplace: Ensure we link xattr.c on MacOS
Andrew Bartlett [Sun, 3 Jun 2012 22:47:03 +0000 (08:47 +1000)]
libreplace: Ensure we link xattr.c on MacOS

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Jun  4 02:36:55 CEST 2012 on sn-devel-104

11 years agos3:libsmb: get rid of cli_smb_req_*,cli_smb_wct_ofs,cli_smb_chain_send
Luk Claes [Sat, 26 May 2012 09:58:34 +0000 (11:58 +0200)]
s3:libsmb: get rid of cli_smb_req_*,cli_smb_wct_ofs,cli_smb_chain_send

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Jun  3 23:37:02 CEST 2012 on sn-devel-104

11 years agos3:smbd: make conn_close_all() a void function
Stefan Metzmacher [Sun, 3 Jun 2012 14:09:23 +0000 (16:09 +0200)]
s3:smbd: make conn_close_all() a void function

metze

11 years agoRevert "s3: Fix bug 8371"
Stefan Metzmacher [Sat, 26 May 2012 09:04:16 +0000 (11:04 +0200)]
Revert "s3: Fix bug 8371"

This reverts commit 2642f385887fbd3aecd4286a4d6223a21d981714.

This is not needed anymore, as 035342c11719d1daa647c0b2ae7cec27a969f83a
"Fix bug #8373 - Can't join XP Pro workstations to 3.6.1 DC." is
the more generic fix for the problem.

metze

11 years agos3:smbd/close: call del_share_mode() directly before TALLOC_FREE(lck)
Stefan Metzmacher [Sat, 2 Jun 2012 12:06:29 +0000 (14:06 +0200)]
s3:smbd/close: call del_share_mode() directly before TALLOC_FREE(lck)

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Jun  3 21:08:19 CEST 2012 on sn-devel-104

11 years agos3:smbd/close: remove unused goto out from close_directory()
Stefan Metzmacher [Sun, 3 Jun 2012 13:17:29 +0000 (15:17 +0200)]
s3:smbd/close: remove unused goto out from close_directory()

metze

11 years agos3:smbd/close: do an early return in close_directory()
Stefan Metzmacher [Sat, 2 Jun 2012 12:04:52 +0000 (14:04 +0200)]
s3:smbd/close: do an early return in close_directory()

metze

11 years agos3: Fix an assert to trigger in close_remove_share_mode
Stefan Metzmacher [Fri, 1 Jun 2012 14:29:51 +0000 (16:29 +0200)]
s3: Fix an assert to trigger in close_remove_share_mode

In case we have a left-over entry in the share mode entry array,
the SMB_ASSERT(got_tokens) is likely to kick in. It happens when
we are about to delete a file with initial delete on close. We don't
have a delete on close token set in the locking.tdb record. We see
the fsp->initial_delete_on_close set, add the delete_on_close token
to lck. Then "delete_file" is being set to true. Then later on we
do the notify_deferred_opens. This walks the list, also checking
for share_mode_stale_pid. We have already deleted our own share
mode entry, share_mode_stale_pid() sees the left-over entry. It not
also deletes that one but also the delete on close token. This leads
to a different view of "delete_file" a.k.a. "got_tokens" further
down in close_remove_share_mode, leading the SMB_ASSERT to fire.

This patch attempts to fix the issue by keeping around our own share
mode entry for almost the whole routine, preventing share_mode_stale_pid()
from removing the delete tokens.

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

11 years agos3: Do an early return in close_remove_share_mode
Volker Lendecke [Fri, 1 Jun 2012 14:42:29 +0000 (16:42 +0200)]
s3: Do an early return in close_remove_share_mode

Without "lck" we don't have much to clean up

Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agos3: Make close_remove_share_mode a bit more readable
Volker Lendecke [Fri, 1 Jun 2012 14:13:22 +0000 (16:13 +0200)]
s3: Make close_remove_share_mode a bit more readable

by introducing a variable simplifying a boolean expression

Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agos3: Simplify get_delete_on_close_token more
Volker Lendecke [Fri, 1 Jun 2012 13:52:14 +0000 (15:52 +0200)]
s3: Simplify get_delete_on_close_token more

All remaining callers actually want the token

Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agos3: Simplify get_delete_on_close_token slightly
Volker Lendecke [Fri, 1 Jun 2012 13:50:39 +0000 (15:50 +0200)]
s3: Simplify get_delete_on_close_token slightly

Introduce find_delete_on_close_token. Thus is_delete_on_close_set
does not have to call get_delete_on_close_token anymore.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agos3: Slightly simplify close_remove_share_mode
Volker Lendecke [Fri, 1 Jun 2012 13:21:12 +0000 (15:21 +0200)]
s3: Slightly simplify close_remove_share_mode

Remove a level of indentation by more use of "continue;"

Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agos3:smbd/close: avoid procid_is_me()
Stefan Metzmacher [Sat, 2 Jun 2012 11:42:09 +0000 (13:42 +0200)]
s3:smbd/close: avoid procid_is_me()

metze

11 years agos3:smbd/open: avoid procid_is_me()
Stefan Metzmacher [Sat, 2 Jun 2012 11:40:26 +0000 (13:40 +0200)]
s3:smbd/open: avoid procid_is_me()

metze

11 years agos3:smbd/oplock: avoid procid_is_me()
Stefan Metzmacher [Sat, 2 Jun 2012 11:39:33 +0000 (13:39 +0200)]
s3:smbd/oplock: avoid procid_is_me()

metze

11 years agobuild: Match autoconf build and disable ACLs on MacOS (darwin)
Andrew Bartlett [Sun, 3 Jun 2012 12:11:31 +0000 (22:11 +1000)]
build: Match autoconf build and disable ACLs on MacOS (darwin)

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sun Jun  3 16:03:59 CEST 2012 on sn-devel-104

11 years agolib/krb5_wrap: Remove unused smb_krb5_get_creds
Andrew Bartlett [Sun, 3 Jun 2012 08:58:31 +0000 (18:58 +1000)]
lib/krb5_wrap: Remove unused smb_krb5_get_creds

Found by callcatcher

This has been unsused since

commit 61f0b247633501d6bf4103ca8345048e537c043d
Author: Günther Deschner <gd@samba.org>
Date:   Thu Nov 12 15:42:03 2009 +0100

    s3-kerberos: remove smb_krb5_get_tkt_from_creds().

    Now that cli_krb5_get_ticket() already handles S4U2SELF impersonation, remove
    smb_krb5_get_tkt_from_creds() which is not required anymore.

    Guenther

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sun Jun  3 13:04:06 CEST 2012 on sn-devel-104

11 years agolibrepace: put #defines after #include "sys/xattr.h"
Andrew Bartlett [Sun, 3 Jun 2012 05:56:29 +0000 (15:56 +1000)]
librepace: put #defines after #include "sys/xattr.h"

This avoids redefining the system xattr functions, which should fix MacOS.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sun Jun  3 09:46:44 CEST 2012 on sn-devel-104

11 years agolib/replace: Undo change of 0 -> NULL
Andrew Bartlett [Sun, 3 Jun 2012 05:45:16 +0000 (15:45 +1000)]
lib/replace: Undo change of 0 -> NULL

This reverts part of e9d797e153ae95561dbb10b56a41281b2472f137 as
in the autoconf tests, NULL isn't available!

(it is available in waf, which caused confusion)

Andrew Bartlett

11 years agos3-libnetapi: Cope with popt versions without POPT_TABLEEND
Andrew Bartlett [Sun, 3 Jun 2012 05:30:15 +0000 (15:30 +1000)]
s3-libnetapi: Cope with popt versions without POPT_TABLEEND

11 years agolibreplace: Fix up MacOS xattr functions
Andrew Bartlett [Sun, 3 Jun 2012 01:32:55 +0000 (11:32 +1000)]
libreplace: Fix up MacOS xattr functions

We need undo the rep_ macro to call the real OS function.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sun Jun  3 06:21:21 CEST 2012 on sn-devel-104

11 years agos3-build: Remove finddead
Andrew Bartlett [Sun, 3 Jun 2012 01:13:29 +0000 (11:13 +1000)]
s3-build: Remove finddead

This won't work with the new tree structure, and we have the same
output at
https://build.samba.org/lcov/data/coverage/samba_4_0_test/unused-fns.txt

Using the callcatcher framework.

Andrew Bartlett