summaryrefslogtreecommitdiff
path: root/source
Commit message (Collapse)AuthorAgeFilesLines
* s3: Fix 'net rpc join' for users with the SeMachineAccountPrivilege.samba-3.2.8Volker Lendecke2009-02-032-4/+10
| | | | | This used to be commit fda8abac in master. (cherry picked from commit 8ddb30ca90d31624ba86cd731f573aedad43face)
* Adjust regex to match variable names including underscoresLars Müller2009-02-031-1/+1
| | | | | | This is required to get the CIFSUPCALL_PROGS setting extracted from config.log. (cherry picked from commit 1c3313dea793a7eea72afb990da125f6c2a8444c)
* Conditional install of the cifs.upcall man pageLars Müller2009-02-031-0/+1
| | | | | | Only install the cifs.upcall man page if CIFSUPCALL_PROGS was set while configure. (cherry picked from commit b44b29e5d9047f79202fa8fb3ca0eb86b2a98090)
* fix build with external dns_sd librariesBjörn Jacke2009-02-021-1/+1
| | | | | | This used to be commit 16f07280 in master. (cherry picked from commit 89919a131b234485564ff2f2f20e3d9f9eb83522) (cherry picked from commit 5d76e219ab4856a5c72835eebf48d5dd1cf0e01e)
* add Tru64 sub-second resolution timestamp supportBjörn Jacke2009-01-301-0/+24
| | | | (cherry picked from commit ce440096473d4db0e43f65ced6c2084a5bdbabc6)
* add configure check for Tru64 sub-second timestamp resolutionBjörn Jacke2009-01-301-0/+40
| | | | (cherry picked from commit bbfe82768add789a98ce3711fb5f378d19363401)
* add missing semicolonsBjörn Jacke2009-01-301-6/+6
| | | | | | the fixed configure check led to a missing semicolon in the now activated BSD code. Then this error was even copypasted into the new AIX code. grrr (cherry picked from commit 5e4f6639e7ed96f3457177d203283c1c55ec52dd)
* Following Björn JACKE's patch, unify the detection of the timespec code in ↵Jeremy Allison2009-01-302-1/+75
| | | | | | | configure.in, and the application of it in time.c Jeremy. (cherry picked from commit d7c7acee813b3cd9649b381a3e63c0be56e67d29)
* add configure check for AIX style sub-second resolution supportBjörn Jacke2009-01-301-2/+42
| | | | (cherry picked from commit e0381d6a173dcf64910ac597a10a3f0fa59ffe43)
* rather cosmetic fix for failed birthtime configure checksBjörn Jacke2009-01-301-3/+3
| | | | (cherry picked from commit ca155297bf932df6fd4a0ff223e5a7f1b8340f6b)
* give configure check "sub-second timestamps without struct timespec" a ↵Björn Jacke2009-01-301-1/+1
| | | | | | chance to succeed (cherry picked from commit 772dcc3b3703507af6baee090602a0ae8633fe2f)
* Use talloc_tos() instead of the talloc NULL context.Andreas Schneider2009-01-291-1/+1
| | | | | Signed-off-by: Andreas Schneider <anschneider@suse.de> (cherry picked from commit ef76b71683f3d420fa8062bc5364493c44ab68ce)
* Avoid valgrind errorsVolker Lendecke2009-01-291-28/+10
| | | | | | | | | | | | | | In event handlers, we might destroy other events that are pending in the lists. We can only run one event safely per select call. Yes, I've seen these valgrind errors :-) Jeremy, with ccdd921e61 you had checked in the change to run multiple events. Do you remember why it was necessary and could not be solved in a different way? Volker (cherry picked from commit 077e0ed31315242c571ccd9e9579f53aac0dbbc7)
* Fix a valgrind error when the socket diesVolker Lendecke2009-01-291-2/+3
| | | | | | Don't reference anything that might have been deleted in the async_req_error call. (cherry picked from commit 8e7d0cf27cf9eb18be497d13bd0dbbe1d76b97a0)
* VERSION: Raise version number up to 3.2.8.Karolin Seeger2009-01-281-1/+1
| | | | | Karolin (cherry picked from commit a8eb8de94f5bfe4de000c5e85a43469af555a717)
* Fix usrmgr opening a user object as non-root.Jeremy Allison2009-01-281-1/+1
| | | | | Jeremy. (cherry picked from commit 239a2d0ac6f1b56d67d7fffdb7388a3008eeb4e2)
* Make the LookupRid access check match LookupName untilJeremy Allison2009-01-281-1/+1
| | | | | | we know the correct bits to use here. Jeremy. (cherry picked from commit 1497c6964767d6d73d6c1c1f6bbbeff2f05b35bc)
* Fix detection of dns_sd libraries.Jeremy Allison2009-01-281-1/+1
| | | | | Jeremy. (cherry picked from commit e0c56d65f4096cdbcf9e560309e71fc21faa7d9a)
* libreplace: fix detection of netinet/ip.h on solaris 8Michael Adam2009-01-281-1/+5
| | | | | | | | | | (The test needs to additionally include <netinet/in_systm.h>.) Michael (cherry picked from commit a223b096700bc54b446a0e152c842b088566720b) Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit ac4d07ef8300a2b571296b8b3f7c23e8850b526a)
* libreplace: fix bug #6066 - netinet/ip.h present but cannot be compiledMichael Adam2009-01-281-1/+4
| | | | | | | | | | under solaris Michael (cherry picked from commit 1b7beaed69823b3c401bc4c0b1c502b671169168) Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit 74534203b5b91445cd8ae4cd7f2a0d35ea73a281)
* s3-eventlog: fix various invalid memcpy in read_package_entry().Günther Deschner2009-01-281-5/+5
| | | | | | Guenther (cherry picked from commit 75fff603625e0259f187e0fa47efd85887092fae) (cherry picked from commit a691e29b466fdf1776160d92704e1ca958fa9eee)
* s3-eventlog: fix buffer allocation in eventlog read call.Günther Deschner2009-01-281-3/+1
| | | | | | | | This broke with f6fa3080fee1b20df9f1968500840a88cf0ee592 back in April 2007... Guenther (cherry picked from commit 547c70e896b6890dd5f7b911e4e0ca107c8a3fa3) (cherry picked from commit 632f4b83158d46ae456713286a27ac0c2aa2ee25)
* lib/replace: add defines to let the callers find out if pwrite and pread are ↵Stefan Metzmacher2009-01-281-0/+6
| | | | | | | | | thread/fork safe metze (cherry picked from commit 7fc7ee9331d0539359ad88c527f59d5fdf212209) (cherry picked from commit d74b63091781e442e42b1fa7881e903a0bcc928c) (cherry picked from commit 9483b143fe473d374e7f5c71f0d497f28f4e69f7)
* Apply same logic fix for #4308 Excel save operation corrupts file ACLsJeremy Allison2009-01-281-46/+36
| | | | | | to NFSv4 ACL code as this uses the same flawed logic as posix_acls.c. Jeremy. (cherry picked from commit 7b994fc658ad175bc40af9e38a8f1b870276d980)
* Fix logic error in try_chown - we shouldn't arbitrarily chownJeremy Allison2009-01-281-6/+9
| | | | | | to ourselves unless that was passed in. Jeremy. (cherry picked from commit d04d93f783533612e20326b7b6ea5958eb5fcdc6)
* Second part of the attemt to fix #4308 - Excel save operation corrupts file ↵Jeremy Allison2009-01-281-129/+143
| | | | | | | | | ACLs. If the chown succeeds then the ACL set should also. Ensure this is the case (refactor some of this code to make it simpler to read also). Jeremy. (cherry picked from commit 7e38054a94d3feacda9c249549d2721a4ee0b261)
* Another attempt to fix bug #4308 - Excel save operation corrupts file ACLs.Jeremy Allison2009-01-281-25/+4
| | | | | | | | | | | | | | | | | | | | | Simo is completely correct. We should be doing the chown *first*, and fail the ACL set if this fails. The long standing assumption I made when writing the initial POSIX ACL code was that Windows didn't control who could chown a file in the same was as POSIX. In POSIX only root can do this whereas I wasn't sure who could do this in Windows at the time (I didn't understand the privilege model). So the assumption was that setting the ACL was more important (early tests showed many failed ACL set's due to inability to chown). But now we have privileges in smbd, and we must always fail an ACL set when we can't chown first. The key that Simo noticed is that the CREATOR_OWNER bits in the ACL incoming are relative to the *new* owner, not the old one. This is why the old user owner disappears on ACL set - their access was set via the USER_OBJ in the creator POSIX ACL and when the ownership changes they lose their access. Patch is simple - just ensure we do the chown first before evaluating the incoming ACL re-read the owners. We already have code to do this it just wasn't rigorously being applied. Jeremy. (cherry picked from commit 9c3da895e6dd5df2f4e3377e1bf562b376436081)
* Fix mistake in DEBUG messageRichard Sharpe2009-01-281-1/+1
| | | | (cherry picked from commit e9de9cd33a3260c0b1b019208db9c3f96d9d5f3a)
* Avoid flooding of syslog with failing pam_putenv messages.Andreas Schneider2009-01-281-1/+1
| | | | | | Signed-off-by: Andreas Schneider <anschneider@suse.de> Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 5db09d4dd27e10c926c3413bcd3088e72a4af487)
* s3:vfs_fileid: readd "fileid:algorithm" as option.Stefan Metzmacher2009-01-281-1/+7
| | | | | | | | | "fileid:mapping" is still supported as fallback. metze (cherry picked from commit 554a89df0cf6d9832778e2913f9fe50b78baeedc) (cherry picked from commit fe9ad21b8cb5286845350fe2280da2cbe2647bb7) (cherry picked from commit 3c56cd9f701254dec33aa60b6f6b3fa90a28557a)
* keep compatibility with v3-0-ctdb name for fileid:mapping optionAndrew Tridgell2009-01-281-1/+1
| | | | | (cherry picked from commit 2856d2e4a43fbcc6c8f8ac7b1613828170362861) (cherry picked from commit 174b595bb171c32be9079f9f691b415ac0fdc635)
* Determine case sensitivity based on file system attributes.Derrell Lipman2009-01-284-13/+92
| | | | | | | | | | | - Most of the time, we can determine from the file system we're connecting to whether it supports case sensitivity. In those cases, we now set the internal case sensitivity flag automatically. For those cases where the request to retrieve file system attributes fails, we'll use the user-specified option value. Derrell (cherry picked from commit ded86426c222b11b9c2e8d8e4cae5ed0eff19edd)
* [Bug 6022] smbc_urlencode and smbc_urldecode were not exportedDerrell Lipman2009-01-283-15/+5
| | | | | | | | | | | - Since the revamp of libsmbclient, there has still been an external declaration for smbc_urlencode and smbc_urldecode in libsmbclient.h, yet those functions were renamed and made private. The two choices were to remove the function names from libsmbclient.h or to make them public again. The reported requested that they be public. This commit makes it so. Derrell (cherry picked from commit 91d30b8a3406d01b5fca97a96ad5964703813f0e)
* Treat file names in POSIX-like case-sensitive fashion by defaultDerrell Lipman2009-01-285-1/+37
| | | | | | | | | | | | | | | | *** THIS COMMIT CAUSES A CHANGE OF DEFAULT BEHAVIOR IN libsmbclient!!! *** - libsmbclient now calls cli_set_case_sensitive() for a new CLI. By default, it requests case-sensitive, but the old behavior of case-insensitive can be requested with smbc_setOptionCaseSensitive(context, False); The change of behavior is considered a bug fix, as it was previously possible to accidentally overwrite a file that had the same case-insensitive name but a different case-sensitive name as a previously-existing file, while creating a new file. Derrell (cherry picked from commit ac4baafeb8d74bf1db7f2ce84b2bc3abdef90337)
* Fix a segfault if ? is there but the options are NULL. This is the case if ↵Andreas Schneider2009-01-281-1/+1
| | | | | | SMBC_parse_path is called by SMBC_stat_ctx. (cherry picked from commit d9f66f3e3d9af9c3323029207e62391f382632e9)
* "First thing, kill all the language lawyers" :-). Ensure possible insane ↵Jeremy Allison2009-01-281-1/+1
| | | | | | | | compilers can't kill us later. Jeremy. (cherry picked from commit 3504910d91fa6d174861815255062efefb0c46aa)
* s3: Remove a few unnecessary checks from the streams depot module and fix to ↵Tim Prouty2009-01-281-12/+18
| | | | | | | | | | | work with NTRENAME Handling of error codes when renaming a file to a stream and a stream to a file is now done in rename_internals_fsp. The NTRENAME stream path only passes in the stream name, so the new base can now be different from the old base. (cherry picked from commit 2cca28b3e999a8886539b9a5dde267bb8a3a1db7)
* s3: Remove a few unnecessary checks from the streams xattr moduleTim Prouty2009-01-281-11/+0
| | | | | | | | | Handling of error codes when renaming a file to a stream and a stream to a file is now done in rename_internals_fsp. The NTRENAME stream path only passes in the stream name, so the new base can now be different from the old base. (cherry picked from commit 078c4fbab8a5be2e23acda1978fd6d6071898dd9)
* s3: Allow renames of streams via NTRENAME and fix stream error codes on renameTim Prouty2009-01-282-17/+22
| | | | | The test_streams_rename2 test in RAW-STREAMS verifies these changes (cherry picked from commit ac7c18d642bef231730927347e7b0296b1c9d82b)
* Fix bug #6040 - Missing <th> header in Status page.Jeremy Allison2009-01-281-1/+2
| | | | | | Based on a patch from pkg-samba-maint@lists.alioth.debian.org. Jeremy. (cherry picked from commit b13f7e296a70e1280baae9f2f3156043c48bafa9)
* Allow reinit_after_fork to be called safely from within swat and other ↵Jeremy Allison2009-01-281-10/+14
| | | | | | | | binaries that don't have an event context or a msg context. Fixes crash bug in swat. Jeremy. (cherry picked from commit a2944e99825943f91d0260c218de06817acfcf51)
* Fix bug #6040 - Calling Samba print server with an aliased DNS-name fails.Jeremy Allison2009-01-281-4/+5
| | | | | Jeremy. (cherry picked from commit 76555085fd9bb40a4c0e2c18b5bf965dcf636cb1)
* Fix bug #6035 - Possible race between fcntl F_SETLKW and alarm delivery.Jeremy Allison2009-01-281-1/+1
| | | | | Jeremy. (cherry picked from commit 7c0b99baafc4a0bc04251c9a456bf2cc104058c4)
* Fix bug in get_dc_name_via_netlogon(), null pointer refrence.Bo Yang2009-01-281-1/+1
| | | | (cherry picked from commit 25e035815681136e69b9d49d548b7d7b908011c5)
* Don't send message to any other child in child process.Bo Yang2009-01-281-1/+33
| | | | (cherry picked from commit e443cfaa25c26a7761113bdde9b7453a97f8e5d5)
* Remove proto.h that got accidentially committet to v3-2-testMichael Adam2009-01-281-10358/+0
| | | | | | | | | | | | in commit 61c5589d1fa4d6fe7ce7293a6f6ceab96d4ee193 (fix for bug #6019) When cherry-picking from v3-3-test (or master) to v3-2-test, we need to check that proto.h gets removed before committing, since v3-2-test still has make proto. Michael (cherry picked from commit 3ac7289b4d7fef830b05a8cb351476480681b28a)
* From boyang - ensure we never "return" from a forked child, always _exit().Jeremy Allison2009-01-282-5/+5
| | | | | Jeremy. (cherry picked from commit e1af2b4bc824450615454adec460e6698a83cefc)
* Fix bug #6019 File corruption in Clustered SMB/NFS environment managed via CTDBJeremy Allison2009-01-283-492/+352
| | | | | Jeremy. (cherry picked from commit 61c5589d1fa4d6fe7ce7293a6f6ceab96d4ee193)
* s3:libsmb: handle the smb signing states the same in the krb5 and ntlmssp casesStefan Metzmacher2009-01-281-16/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | SMB signing works the same regardless of the used auth mech. We need to start with the temp signing ("BSRSPYL ") and the session setup response with NT_STATUS_OK is the first signed packet. Now we set the krb5 session key if we got the NT_STATUS_OK from the server and then recheck the packet. All this is needed to make the fallback from krb5 to ntlmssp possible. This commit also resets the cli->vuid value to 0, if the krb5 auth didn't succeed. Otherwise the server handles NTLMSSP packets as krb5 packets. The restructuring of the SMB signing code is needed to make sure the krb5 code only starts the signing engine on success. Otherwise the NTLMSSP fallback could not initialize the signing engine (again). metze (cherry picked from commit 7d9fd64f38aa5821b38c1223cf87979fc87bfb71) (cherry picked from commit 8e29070ccd0b5103af2e6da75644169f46700313) (cherry picked from commit 38b297f99ec166e5c40ba33774222b37b45b4fec)
* Even for srclen == 0 we have to return somethingVolker Lendecke2009-01-281-0/+6
| | | | | | | | | This fixes a regression reported by Corinna Vinschen <corinna@vinschen.de> Thanks, Volker (cherry picked from commit a77b622f05c50512626b2636343eb8da6d5e4549)