summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* talloc - some documentation changesMatthias Dieter Wallnöfer2011-09-162-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) (cherry picked from commit db9670dd163432d6758a81c5aa6000c13e61b14a)
* talloc: preserve context name on talloc_free_children()Simo Sorce2011-09-161-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) (cherry picked from commit 99495ea4d28de530fedc11c94d36bc304cf9ae4a)
* talloc: ensure the sibling linked list remains valid during a freeAndrew Tridgell2011-09-161-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) (cherry picked from commit 07554082cc9d286ca0628179c9e7f7a493016a57)
* s3-vfs: Fix vfs_chown_fsp.Jeremy Allison2011-09-162-5/+18
| | | | | Fix bug #8370 (vfs_chown_fsp broken -- returns in the wrong directory). (cherry picked from commit 909ff854168bf89e8502ff1994a926613ca5a1d5)
* s3:build(autoconf): fix bug #8369: remove irritating "." targets when recent ↵Michael Adam2011-09-163-9/+19
| | | | | | system libs exist (cherry picked from commit c544a744db67c2860065b1c5d70dc14ac0fa19ba)
* s3:idmap_tdb2: fix bug 8368 : correctly initialize "idmap config * : script" ↵Michael Adam2011-09-161-1/+1
| | | | | | | with NULL this fixes the fallback to the deprecated spelling idmap:script (cherry picked from commit 9a41e24753b49b8ef1653dde763fb0764884e616)
* Fix warning messages on Freebsd 4.6.2.Herb Lewis2011-09-161-0/+2
| | | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> (cherry picked from commit f0901792324425804592ac7032e3853b4d4c7829) Fix bug #8365 (backport compiler warnings). (cherry picked from commit 7039bbcd96a780965d69668d6541d316f7a4cd56)
* s3: Fix bug 8360Volker Lendecke2011-09-161-7/+16
| | | | | OS/2 sends an unexpected write&x/read&x chain (cherry picked from commit 2aca833308049d005c647aabcd9d894f59698ef4)
* s3-modules: Fix the build of gpfs.c on RHEL 6.0 with gpfs 3.4.0-4Björn Baumbach2011-09-161-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). (cherry picked from commit 8ddea73f7845ee59d4035d40da87664e21e96ed9)
* s3:vfs_prealloc: fix build on SLES8Björn Jacke2011-09-161-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). (cherry picked from commit 3f791d40daeaac748d5ebc86c8cbd8ce2c580aa9)
* s3: Do central cli_set_error (cherry picked from commit ↵Volker Lendecke2011-09-169-189/+2
| | | | | | | | | 0645deb1b4a70e45f88116fae16ec7f3a1b4d5ed) Signed-off-by: Stefan Metzmacher <metze@samba.org> Fix bug #7864 (cli_errstr() usage is wrong). (cherry picked from commit 6b3b5f7dbe0cde783cf557f30865ef684e10ffd5)
* s3: Add a fallback for missing open&x support in OS/X LionVolker Lendecke2011-09-161-19/+69
| | | | | | The last 4 patches address bug #8338 (MAC Lion - smbclient "Open AndX Request->STATUS_NOT_SUPPORTED). (cherry picked from commit 7803eec63dac2fa930ee3a33bcdb2921b5fb970a)
* s3: Make map_open_params_to_ntcreate() available in lib/Volker Lendecke2011-09-164-154/+155
| | | | (cherry picked from commit e7f68cc2a76edd8f7cccdc0445c6b9d61e111f46)
* s3: Make is_executable() available in lib/Volker Lendecke2011-09-164-18/+18
| | | | (cherry picked from commit eb7a5a708ee39f3284983055a39889c98463366f)
* s3: We only need base_name in map_open_params_to_ntcreateVolker Lendecke2011-09-164-9/+12
| | | | (cherry picked from commit c9f921156534d38ea2a40d3c5ce8b99d308e5340)
* 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 (cherry picked from commit 144f8dd732d47f1360741d516152993ac88cf9b9)
* WHATSNEW: Start release notes for Samba 3.6.1.Karolin Seeger2011-08-091-0/+38
| | | | | Karolin (cherry picked from commit 185548092daa18a8630ae929a1372dc1e226c5f3)
* VERSION: Bump version up to 3.6.1.Karolin Seeger2011-08-091-1/+1
| | | | | Karolin (cherry picked from commit 8498acb8f8c9e4db23f1845e00b7a76a38ba5d31)
* WHATSNEW: Update changes since rc3.samba-3.6.0Karolin Seeger2011-08-091-0/+14
| | | | | Karolin (cherry picked from commit 76022256cd23cd71354e21384e2350c761e9f373)
* 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> (cherry picked from commit d1ab64cbc2d62744f541eea0d80d7b522416ac1c)
* 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 (cherry picked from commit 3c05013694c453411b78a1df884a80c8d48e7393)
* 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()). (cherry picked from commit 6a587c926b7fdcb934b916a29bdd04bd0ef606b9)
* 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) (cherry picked from commit cbd408df89ec51fb06fbfb935458eb8425639bed)
* 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). (cherry picked from commit 87fa72a5202fe3780d4a61289bf755027cd078f4)
* 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). (cherry picked from commit be41d88e55237214e5a27f7bd8d8c15e27d31579)
* WHATSNEW: Update release notes.Karolin Seeger2011-08-071-1/+28
| | | | | Karolin (cherry picked from commit d6f841bb3e465e7f05a886eafcb54f8d53b54327)
* s3: Fix smb2 handling error returns from aioVolker Lendecke2011-08-071-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). (cherry picked from commit ad75107a33ff7e70d9939b80b3e7e06265ee030e)
* Fix bug 7462 - Non-standard SA_RESETHAND is used in ↵Jeremy Allison2011-08-073-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) (cherry picked from commit 4b4155c7235d8ec0c93324a782bc815ef08a7ba3)
* Fix bug #8341 - libsmbclient segfault when feed the root of a mounted share ↵Alban Browaeys2011-08-071-1/+2
| | | | | | | | via an uri Fix null deref. (cherry picked from commit cf0c36ab9a5129878b92a52d22aa814eaa737a4c) (cherry picked from commit ca293af1f06891dfd13171d418047e4fa8c4fc14)
* s3: dbwrap_ctdb.c: Fix bug #8303 #ifdef CTDB_CONTROL_SCHEDULE_FOR_DELETION issueBjörn Baumbach2011-08-071-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) (cherry picked from commit 3932178dd3a54723484e833cddf58ff68e7c3417)
* Second part of bugfix for bug #8335 - file copy aborts with ↵Jeremy Allison2011-08-071-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. (cherry picked from commit 3e854564315a7bdc5d9837526a813b2b858e0563)
* First part of bugfix for bug #8335 - file copy aborts with ↵Jeremy Allison2011-08-072-2/+2
| | | | | | | | smb2_validate_message_id: bad message_id Set default max credits to 8192 now this has been documented in the SMB2 spec. (cherry picked from commit 9d579ed2398d7f88c9c02076e612eed877d1ec88)
* s3:loadparm: fix the reload of the configuration: also reload activated ↵Michael Adam2011-08-071-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). (cherry picked from commit 254cc7ae23f2b0108bada37b6b59dd90ac198469)
* s3:loadparm: add reload_registry_shares() - reload only those shares already ↵Michael Adam2011-08-071-0/+29
| | | | | | loaded (cherry picked from commit ec113a58a4dc4e4f3ea03f7818eb312325f69482) (cherry picked from commit cc3c8d10940ef5d5d0e636b0f9d46606d46b0dc7)
* nbt: fix WinXP S3 domain join: alignment of nbt_netlogon_response_from_pdcAndrew Bartlett2011-08-071-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). (cherry picked from commit 24fe5fea8fb7839dcbcf39a346a31c9e90e7beb9)
* Fix bug #8324 - smbclient cannot list directories from a big-endian machine.Jeremy Allison2011-08-071-2/+2
| | | | | | Two uses of the setup array are not being correctly byte-swapped to little endian. (cherry picked from commit 146549d7250fefb365675154f0916c37e56faa5d)
* s3:torture: remove a file accidentially committed with ↵Michael Adam2011-08-071-294/+0
| | | | | | | 3b2fe4728d6d916508b677e696ecad88f8b7b9fd Fix bug #8329 (a code file was accidentially commited). (cherry picked from commit 0f9a24b7dc9aaae6145ec409191fc16b07c601a8)
* s3:idmap_tdb2: remove the undocumented option of the silly name "tdb:idmap2.tdb"Michael Adam2011-08-071-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). (cherry picked from commit 742b8c3c14ec8708eb5bfe5e7960c1c93ec0096c)
* s3:idmap_tdb2: remove a legacy comment (cherry picked from commit ↵Michael Adam2011-08-071-1/+0
| | | | | | 67cd2f9d867fad1f7df2d6a6a5cdb723336ac495) (cherry picked from commit 55019ced08d235a3ba9ae27b06379fcb827f9b28)
* s3:idmap_tdb2: remove legacy comment (cherry picked from commit ↵Michael Adam2011-08-071-2/+0
| | | | | | 4b5ada3d27198b49771acb70ae979087235be783) (cherry picked from commit 4369aeb41c2fafd6a1e0baff5cbb05d223e869ab)
* s3:idmap_tdb2: remove superfluous initialization with bogus comment (cherry ↵Michael Adam2011-08-071-3/+0
| | | | | | picked from commit 551185573899b6e608863f833633d40ae04458d8) (cherry picked from commit 5a5b069166d5f224526f6cae049fa14cf35c426a)
* s3:idmap_tdb2: fix a legacy comment that does not apply any more (cherry ↵Michael Adam2011-08-071-2/+1
| | | | | | picked from commit 7d3dc2164b3929c642127659593e69fc865a6184) (cherry picked from commit 7f56b6269792300237193b69541f73fb32a986b3)
* s3:doc: add an example with idmap script to the idmap_tdb2 manpage (cherry ↵Michael Adam2011-08-071-0/+12
| | | | | | picked from commit 86973eee43605a3680fb51470a81ea9ca7f1b515) (cherry picked from commit 2abe73e5eed10af4ee030449322ddbc4c7054c08)
* s3:docs: remove legacy text from the example in the idmap_tdb2 manpage ↵Michael Adam2011-08-071-2/+0
| | | | | | (cherry picked from commit 2f253c2791ccb2421f26f563e3983ee950da1d05) (cherry picked from commit 66216f6325f33c2a1d7c3e114754efc78d61aae2)
* s3:doc: clarify the idmap script section in the idmap_tdb2 manpage (cherry ↵Michael Adam2011-08-071-7/+9
| | | | | | picked from commit 4daab85ae60f2821a1d9d98f1edff6a318e8e3c1) (cherry picked from commit 29e39194aaa15c44178b16a4abc5583f5ff4688f)
* s3:docs:idmap_tdb2: update the documentation of idmap scriptMichael Adam2011-08-071-2/+16
| | | | | | to reflect the new variant "idmap config * : script" of configuring the idmap script (cherry picked from commit 2aa19b4aeb9de43a0e2b94ad1202f2068b29c710) (cherry picked from commit 22b9dc3f66c6786a962d7cb462b372fb955a199e)
* s3:idmap_tdb2: deprecate the idmap:script parameter and use "idmap config * ↵Michael Adam2011-08-071-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) (cherry picked from commit 7812ce547973a0ad5a69c64e8e708e1b9f3a8687)
* WHATSNEW: Start release notes for 3.6.0.Karolin Seeger2011-07-261-9/+9
| | | | | Karolin (cherry picked from commit 5f9bc1433738002acd9a93946955494908af9c05)
* VERSION: Bump version up to 3.6.0.Karolin Seeger2011-07-261-1/+1
| | | | | Karolin (cherry picked from commit ef152f60c2be5b51c042979ad29596309059af1d)
* WHATSNEW: Update changes since rc2.samba-3.6.0rc3Karolin Seeger2011-07-261-0/+10
| | | | | Karolin (cherry picked from commit 1a045c461ec74001596e9ccf8a676328216e547f)