summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* talloc: added test suite for talloc_free_children()Andrew Tridgell2011-08-201-0/+44
| | | | | | | | this tests the fix from Simo Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Jul 29 11:30:13 CEST 2011 on sn-devel-104 (cherry picked from commit d004fd0b53fb6f3ae64f0e24cf51f4471d434574)
* Fix license info for talloc in manpage.Jelmer Vernooij2011-08-201-3/+3
| | | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Apr 24 03:27:54 CEST 2011 on sn-devel-104 (cherry picked from commit fb05e82c99f0779bd44371a2bdafdd7147448dd5)
* talloc - improve doxygen comment of "talloc_move"Matthias Dieter Wallnöfer2011-08-201-3/+3
| | | | | | | Express better that this should be a pointer of a pointer. Reviewed-by: Tridge (cherry picked from commit 6723e90d524c8e73f19c06b3ff28867a1a89b14b)
* talloc - some documentation changesMatthias Dieter Wallnöfer2011-08-202-53/+48
| | | | | | | | | | | | - Fix some typos - Document better the differences in the behaviour between talloc 1.X and 2.X. Previously this seemed a bit spongy to me. Reviewed-by: Jelmer + Tridge Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Mon Apr 4 11:05:42 CEST 2011 on sn-devel-104 (cherry picked from commit 513574afd759bcb3832374d3ae170f1ed0b0062b)
* talloc: preserve context name on talloc_free_children()Simo Sorce2011-08-201-0/+23
| | | | | | | | Otherwise tc->name will end up pointing to garbage when it is not set to a const but rather to a string allocate as child of the context itself. Signed-off-by: Andrew Tridgell <tridge@samba.org> (cherry picked from commit 52182a528117c4dd9624f64b34a873c0903ad70a)
* talloc: ensure the sibling linked list remains valid during a freeAndrew Tridgell2011-08-201-15/+3
| | | | | | | | | | | | | This ensures that the sibling list of a pointer doesn't become invalid during a free operation. It is an alternative fix to the fix in 6f51a1f45bf4de062cce7a562477e8140630a53d, and avoids the problem of trying to calculate the parent pointer early This should fix the subtle spoolss talloc bug that Simo found Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Aug 9 01:53:17 CEST 2011 on sn-devel-104 (cherry picked from commit cf986f200804ce873b43c1ecf2d5e1bd08eb8a25)
* s3-vfs: Fix vfs_chown_fsp.Jeremy Allison2011-08-202-5/+18
| | | | Fix bug #8370 (vfs_chown_fsp broken -- returns in the wrong directory).
* s3:build(autoconf): fix bug #8369: remove irritating "." targets when recent ↵Michael Adam2011-08-183-9/+19
| | | | system libs exist
* s3:idmap_tdb2: fix bug 8368 : correctly initialize "idmap config * : script" ↵Michael Adam2011-08-181-1/+1
| | | | | | with NULL this fixes the fallback to the deprecated spelling idmap:script
* Fix warning messages on Freebsd 4.6.2.Herb Lewis2011-08-181-0/+2
| | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> (cherry picked from commit f0901792324425804592ac7032e3853b4d4c7829) Fix bug #8365 (backport compiler warnings).
* s3: Fix bug 8360Volker Lendecke2011-08-181-7/+16
| | | | OS/2 sends an unexpected write&x/read&x chain
* s3-modules: Fix the build of gpfs.c on RHEL 6.0 with gpfs 3.4.0-4Björn Baumbach2011-08-181-0/+1
| | | | | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed May 18 11:58:14 CEST 2011 on sn-devel-104 (cherry picked from commit 192198ad70474e56d4708b65482eee976ea78a05) Fix bug #8364 (gpfs vfs module build broken).
* s3:vfs_prealloc: fix build on SLES8Björn Jacke2011-08-181-0/+1
| | | | | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Tue Aug 9 19:29:08 CEST 2011 on sn-devel-104 (cherry picked from commit 1e76662ae6aa77d7b6e9e8a0266fcb1a1320a7fb) Fix bug #8363 (vfs_prealloc build broken on SLES8).
* s3: Do central cli_set_error (cherry picked from commit ↵Volker Lendecke2011-08-189-189/+2
| | | | | | | | 0645deb1b4a70e45f88116fae16ec7f3a1b4d5ed) Signed-off-by: Stefan Metzmacher <metze@samba.org> Fix bug #7864 (cli_errstr() usage is wrong).
* s3: Add a fallback for missing open&x support in OS/X LionVolker Lendecke2011-08-181-19/+69
| | | | | The last 4 patches address bug #8338 (MAC Lion - smbclient "Open AndX Request->STATUS_NOT_SUPPORTED).
* s3: Make map_open_params_to_ntcreate() available in lib/Volker Lendecke2011-08-184-154/+155
|
* s3: Make is_executable() available in lib/Volker Lendecke2011-08-184-18/+18
|
* s3: We only need base_name in map_open_params_to_ntcreateVolker Lendecke2011-08-184-9/+12
|
* WHATSNEW: Correct default value of smb2 max credits.Karolin Seeger2011-08-091-1/+1
| | | | | | | This has been changed by one of the last minute commits. Thanks to Christian Ambach for reporting! Karolin
* WHATSNEW: Start release notes for Samba 3.6.1.Karolin Seeger2011-08-091-0/+38
| | | | Karolin
* VERSION: Bump version up to 3.6.1.Karolin Seeger2011-08-091-1/+1
| | | | Karolin
* WHATSNEW: Update changes since rc3.Karolin Seeger2011-08-091-0/+14
| | | | Karolin
* s3:modules:nfs4_acls: improve fix for bug #8330Michael Adam2011-08-091-4/+2
| | | | | | simplify the check insmbacl4_find_equal_special() Signed-off-by: Michael Adam <obnox@samba.org>
* s3:modules fix Bug 8330 NFSv4 ACL merging logic is brokenChristian Ambach2011-08-091-2/+1
| | | | | | | | | | | | | | | | | we should not merge ACEs with different flags (e.g. CI/OI/I/) Otherwise ACLs get wrong entries and thus wrong semantics Example: ACL:BUILTIN\Users:ALLOWED/0x0/FULL ACL:BUILTIN\Users:ALLOWED/I/READ got merged to ACL:BUILTIN\Users:ALLOWED/I/FULL This is not the same and also leads to wrong displays in the Windows ACL dialog Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Wed Jul 27 16:03:51 CEST 2011 on sn-devel-104
* s3:lib/events: Fix a bug in run_poll_events().Stefan Metzmacher2011-08-091-0/+4
| | | | | | | | | | | | | | | | | Ignore fd events without EVENT_FD_READ or EVENT_FD_WRITE also in run_events_poll(). They are ignore when building the array for the syscall in event_add_to_poll_args(), so we need to ignore them run_events_poll() too. metze Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Aug 9 10:11:54 CEST 2011 on sn-devel-104 (cherry picked from commit 020032e114c0e966acf24f24e707942219d60cf3) Fix bug #8358 (smbd exits with NT_STATUS_INTERNAL_ERROR in run_poll_events()).
* s3:smb2_server: make sure we grant credits on async read/write operations ↵Stefan Metzmacher2011-08-091-6/+15
| | | | | | | | | | | | | | (bug #8357) Currently we skip, the "gone async" interim response on read and write, this caused the aio code path to grant 0 credits to the client in the read/write responses. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Aug 7 22:23:57 CEST 2011 on sn-devel-104 (cherry picked from commit 47bffb9b9243dc72d7305cd9ec3e63e176841bf5)
* s3/swat: use strlcat instead of strncat to fix build on old Linux distrosBjörn Jacke2011-08-091-1/+1
| | | | | | | | | | | | | SLES 9's glibc for example had weird macros where the use of strncat resulted in the use of strcat which we don't allow. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Thu Aug 4 17:50:24 CEST 2011 on sn-devel-104 (cherry picked from commit d3b4d75364210e2d2a4a1cd806f28b0021f22909) Fix bug #8362 (build issue on old glibc systems).
* s3:web/swat: use strtoll() instead of atoi/atol/atollStefan Metzmacher2011-08-091-6/+19
| | | | | | | | | | | | | This is more portable, as we have a strtoll replacement in lib/replace. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Aug 6 11:55:45 CEST 2011 on sn-devel-104 (cherry picked from commit a6be0820d09b3f3eabfbb5f4356add303aa8a494) Fix bug #8347 (CVE-2011-2522 regression for HP-UX, AIX and OSF).
* WHATSNEW: Update release notes.Karolin Seeger2011-08-071-1/+28
| | | | Karolin
* s3: Fix smb2 handling error returns from aioVolker Lendecke2011-08-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Found when reading with aio_fork beyond the end of file. Metze, Jeremy, please check! Without this we get [2011/08/02 21:02:54.082661, 0] lib/util.c:778(smb_panic_s3) PANIC (pid 2302): smbd/smb2_read.c:593: Type mismatch: name[NULL] expected[struct smbd_smb2_read_state] [2011/08/02 21:02:54.094316, 0] lib/util.c:882(log_stack_trace) BACKTRACE: 23 stack frames: #0 bin/smbd(log_stack_trace+0x2d) [0xb72873d8] #1 bin/smbd(smb_panic_s3+0x7c) [0xb7287529] #2 bin/smbd(smb_panic+0x2f) [0xb7277e1f] #3 /root/git/s3-work/source3/bin/libtalloc.so.2 [0xb6c6bc48] #4 /root/git/s3-work/source3/bin/libtalloc.so.2 [0xb6c6ec79] #5 /root/git/s3-work/source3/bin/libtalloc.so.2(_talloc_get_type_abort+0x34) [0xb6c6ecb3] #6 bin/smbd [0xb6fbc405] #7 bin/smbd(_tevent_req_notify_callback+0x4a) [0xb729a85a] #8 bin/smbd [0xb729a888] #9 bin/smbd(_tevent_req_done+0x19) [0xb729aa73] #10 bin/smbd [0xb6fae517] #11 bin/smbd [0xb6fad258] #12 bin/smbd(smbd_aio_complete_aio_ex+0xf5) [0xb6fad6e8] #13 /root/git/inst/modules/vfs/aio_fork.so [0xb66d4992] #14 bin/smbd(run_events_poll+0x400) [0xb7297df2] #15 bin/smbd(smbd_process+0xd75) [0xb6f9d3a7] #16 bin/smbd [0xb756f07b] #17 bin/smbd(run_events_poll+0x400) [0xb7297df2] #18 bin/smbd [0xb7298254] #19 bin/smbd(_tevent_loop_once+0x9e) [0xb72986ac] #20 bin/smbd(main+0x185c) [0xb7570e59] #21 /lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb6b08455] #22 bin/smbd [0xb6f14e01] Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Aug 2 22:33:15 CEST 2011 on sn-devel-104 (cherry picked from commit 5068a0d14df8cc6f1b4517c64f4356abc6606b58) Fix bug #8343 (SMB2 crash reading with aio_fork beyond the end of file).
* Fix bug 7462 - Non-standard SA_RESETHAND is used in ↵Jeremy Allison2011-08-023-4/+6
| | | | | | | | | | ...lib/tevent/tevent_signal.c Make SA_RESETHAND conditional on its existance. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Aug 1 22:03:45 CEST 2011 on sn-devel-104 (cherry picked from commit 0c67efdd68b9808542c090b9fd9920e4e37d85d0)
* Fix bug #8341 - libsmbclient segfault when feed the root of a mounted share ↵Alban Browaeys2011-08-021-1/+2
| | | | | | | via an uri Fix null deref. (cherry picked from commit cf0c36ab9a5129878b92a52d22aa814eaa737a4c)
* s3: dbwrap_ctdb.c: Fix bug #8303 #ifdef CTDB_CONTROL_SCHEDULE_FOR_DELETION issueBjörn Baumbach2011-07-311-2/+2
| | | | | | | | | | | | Check for HAVE_CTDB_CONTROL_SCHEDULE_FOR_DELETION_DECL instead of CTDB_CONTROL_SCHEDULE_FOR_DELETION, which is an enum member and not a define. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jul 12 18:56:30 CEST 2011 on sn-devel-104 (cherry picked from commit b807c58b655f1ffbf849f5de9eef66136bdb4a52)
* Second part of bugfix for bug #8335 - file copy aborts with ↵Jeremy Allison2011-07-311-3/+24
| | | | | | | | | | | | | | smb2_validate_message_id: bad message_id Modify the credit granting algorithm to closer to what I believe Windows does. Split up max_credits into 1/16ths, and then scale the requested credits by how many 16ths have been currently granted. Less than 1/16th == grant all requested (100%), scale down as more have been granted. Never ask for less than 1 if the client asked for at least 1.
* First part of bugfix for bug #8335 - file copy aborts with ↵Jeremy Allison2011-07-312-2/+2
| | | | | | | smb2_validate_message_id: bad message_id Set default max credits to 8192 now this has been documented in the SMB2 spec.
* s3:loadparm: fix the reload of the configuration: also reload activated ↵Michael Adam2011-07-291-2/+6
| | | | | | | | | | | registry shares Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Jul 22 16:53:49 CEST 2011 on sn-devel-104 (cherry picked from commit efbe1602bd014eada4811f336bdccbf4692d3807) The last 2 patches address bug 8327 (config reload fails to reload shares from registry).
* s3:loadparm: add reload_registry_shares() - reload only those shares already ↵Michael Adam2011-07-291-0/+29
| | | | loaded (cherry picked from commit ec113a58a4dc4e4f3ea03f7818eb312325f69482)
* nbt: fix WinXP S3 domain join: alignment of nbt_netlogon_response_from_pdcAndrew Bartlett2011-07-291-1/+1
| | | | | | | | | | | This fixes WinXP joining a Samba3 domain, which was broken on hosts with an even number of characters in the host name. The alignment requested in the structure was ignored because of the overall NDR_NOALIGN set on the packet. Andrew Bartlett Fix bug #8326 (WinXP cannot join a Samba3 domain with a 'even' hostname).
* Fix bug #8324 - smbclient cannot list directories from a big-endian machine.Jeremy Allison2011-07-271-2/+2
| | | | | Two uses of the setup array are not being correctly byte-swapped to little endian.
* s3:torture: remove a file accidentially committed with ↵Michael Adam2011-07-271-294/+0
| | | | | | 3b2fe4728d6d916508b677e696ecad88f8b7b9fd Fix bug #8329 (a code file was accidentially commited).
* s3:idmap_tdb2: remove the undocumented option of the silly name "tdb:idmap2.tdb"Michael Adam2011-07-271-5/+1
| | | | | | | | | | | | | | | | | | | In ancient times, when ctdb had not support for persistent databases and tdb2 was introduced as a two-layer solution and it was more important than today to be able to change the location of the permanent database file because it had to reside on shared storage. But these were times when idmap_tdb2 was not even officially released. Nowadays, with ctdb handling the persistent idmap2.tdb database, the path is stripped anyways, so this undocumented option has become unnecessary and is hence removed. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Jul 27 05:37:57 CEST 2011 on sn-devel-104 (cherry picked from commit 3276060da4e7d495bd5cf5cbf7237e64d948ee77) The last 10 patches address bug #8328 (final cleanup of idmap_tdb2 code and docs needed for release).
* s3:idmap_tdb2: remove a legacy comment (cherry picked from commit ↵Michael Adam2011-07-271-1/+0
| | | | 67cd2f9d867fad1f7df2d6a6a5cdb723336ac495)
* s3:idmap_tdb2: remove legacy comment (cherry picked from commit ↵Michael Adam2011-07-271-2/+0
| | | | 4b5ada3d27198b49771acb70ae979087235be783)
* s3:idmap_tdb2: remove superfluous initialization with bogus comment (cherry ↵Michael Adam2011-07-271-3/+0
| | | | picked from commit 551185573899b6e608863f833633d40ae04458d8)
* s3:idmap_tdb2: fix a legacy comment that does not apply any more (cherry ↵Michael Adam2011-07-271-2/+1
| | | | picked from commit 7d3dc2164b3929c642127659593e69fc865a6184)
* s3:doc: add an example with idmap script to the idmap_tdb2 manpage (cherry ↵Michael Adam2011-07-271-0/+12
| | | | picked from commit 86973eee43605a3680fb51470a81ea9ca7f1b515)
* s3:docs: remove legacy text from the example in the idmap_tdb2 manpage ↵Michael Adam2011-07-271-2/+0
| | | | (cherry picked from commit 2f253c2791ccb2421f26f563e3983ee950da1d05)
* s3:doc: clarify the idmap script section in the idmap_tdb2 manpage (cherry ↵Michael Adam2011-07-271-7/+9
| | | | picked from commit 4daab85ae60f2821a1d9d98f1edff6a318e8e3c1)
* s3:docs:idmap_tdb2: update the documentation of idmap scriptMichael Adam2011-07-271-2/+16
| | | | | to reflect the new variant "idmap config * : script" of configuring the idmap script (cherry picked from commit 2aa19b4aeb9de43a0e2b94ad1202f2068b29c710)
* s3:idmap_tdb2: deprecate the idmap:script parameter and use "idmap config * ↵Michael Adam2011-07-271-18/+21
| | | | | | | | | | : script" instead With this patch, "idmap config * : script" will override "idmap : script". If "idmap : script" is present, a deprecation warning will be printed in any case. If "idmap config * : script" is not set, then the value of "idmap :script" will be used for backwards compatibility. (cherry picked from commit b6c82f18f17cdded771d285930566c1d104686aa)