Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2010-04-09 | s3: Use talloc_tos() as talloc ctx for fd_lines_load() in map_username() | Volker Lendecke | 1 | -1/+1 | |
2010-04-09 | s3: TALLOC_FREE(command) correctly in map_username() | Volker Lendecke | 1 | -0/+2 | |
2010-04-08 | Stop smb2 from calling into smb1 blocking lock request code. | Jeremy Allison | 5 | -0/+66 | |
Allocate a uint16_t internal SMB1 mid for an SMB2 request. Add a back pointer from the faked up smb_request struct to the smb2 request. Getting ready to add restart code for blocking locks, share mode violations and oplocks in SMB2. Jeremy. | |||||
2010-04-08 | Simplify call_trans2qfilepathinfo() and smbd_do_qfilepathinfo() | Jeremy Allison | 3 | -20/+4 | |
Remove the bool ms_dfs_link parameter from smbd_do_qfilepathinfo. It is not possible for this to be a DFS link. Remove the check_msdfs_link() call from call_trans2qfilepathinfo() - the call to filename_convert() above with a ucf_flags of zero *MUST* catch a DFS link and return NT_STATUS_PATH_NOT_COVERED in this case, so the code below checking for msdfs links is redundent. Don't add this to 3.5.x, as it's an optimization but not needed to fix bug #7339 - MSDFS is non-functional in 3.5.x. Jeremy. | |||||
2010-04-08 | Fix bug #7339 - MSDFS is non-functional in 3.5.x | Jeremy Allison | 3 | -1/+5 | |
In the refactoring around filename_convert, the split between the functions resolve_dfspath() and resolve_dfspath_wcard() was lost, leaving us only with resolve_dfspath_wcard(). Internally resolve_dfspath_wcard() calls dfs_redirect() only with a "allow_wcards" flag of true, wheras the old resolve_dfspath() would call with a value of false. The loss of this case causes dfs_redirect to always masquerade DFS links as directories, even when they are being queried directly by a trans2 QPATHINFO call. We should only masquerade DFS links as directories when called from a SMBsearch or trans2 findfirst/findnext - which was the intent of the "allow_wcards" flag. This patch adds back an allow_wcards bool parameter to resolve_dfspath_wcard(). This bool is set from the state of the ucf_flags when filename_convert() is called. I will follow this up with a new smbclient-based torture test that will prevent us from ever regressing our DFS support again. Jeremy. | |||||
2010-04-08 | s3-lanman: use spoolss for api_RDosPrintJobDel(). | Günther Deschner | 1 | -15/+59 | |
Guenther | |||||
2010-04-08 | s3-lanman: use spoolss for api_WPrintQueueCtrl(). | Günther Deschner | 1 | -7/+70 | |
Guenther | |||||
2010-04-07 | Start to plumb smb2 into the oplock system. Calls dummy functions for now. | Jeremy Allison | 4 | -46/+59 | |
Jeremy. | |||||
2010-04-07 | On compound requests, MS-SMB2 says clients MAY use 0xFFFFFFFF for compound ↵ | Jeremy Allison | 2 | -0/+39 | |
tid and 0xFFFFFFFFFFFFFFFF for compound sessionid values. Cope with this. Jeremy. | |||||
2010-04-07 | Don't forget to initialize *p_creds_requested. | Jeremy Allison | 1 | -0/+1 | |
Jeremy. | |||||
2010-04-07 | s3: add comment about what the FSCTL_QUERY_ALLOCATED_RANGES currently does | Björn Jacke | 1 | -0/+6 | |
2010-04-06 | Ensure we total up the correct number of creds requested in a compound request. | Jeremy Allison | 1 | -1/+7 | |
2010-04-06 | Parameterize "smb2 max read", "smb2 max write", "smb2 max trans". | Jeremy Allison | 4 | -8/+8 | |
Set to 64k by default. Jeremy. | |||||
2010-04-06 | fix a segfault in the notify subsystem | Christian Ambach | 1 | -5/+16 | |
When the notify_array cannot be loaded correctly, do not keep the half-baked parsing results in the global variable. This can lead to segfaults next time notify_load is entered and the seqnum has not changed. This has been seen in a case where mixed smbd versions were running in a CTDB cluster (versions with and w/o commit c216d1e6 that changed the notify_entry structure). There will be missed notifications until all smbds are at the same software level, but this should be acceptable and is better than crashing and interrupting client operations. This fix cleans up the notify_array, removes the unparseable data from the TDB and returns a fresh notify_array that can be worked with. The NDR_PRINT_DEBUG had to be moved to only be called when the parsing succeeded, it was seen to cause additional segfaults. The status variable is intentionally left to NT_STATUS_OK to not make callers abort and report errors to the clients and make them disconnect. Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com> | |||||
2010-04-05 | Add FSCTL_QUERY_ALLOCATED_RANGES to the list of Windows ioctls we support. | Jeremy Allison | 1 | -0/+52 | |
Based on a patch reported and tested by Ira Cooper <samba@ira.wakeful.net>. Jeremy. | |||||
2010-04-05 | Fix issue with aio where r/w lock wasn't kept across aio read operations. | Jeremy Allison | 2 | -49/+108 | |
Change schedule_aio_read_and_X/schedule_aio_write_and_X to return NTSTATUS. Move the grant and release of the lock into the aio code. Jeremy | |||||
2010-04-01 | Move initialize_async_io_handler() inside of smbd/aio.c. | Jeremy Allison | 2 | -37/+42 | |
Call from actual aio read or write. No reason to call this globally on startup. Jeremy. | |||||
2010-03-31 | Make smbd_lock_socket/smbd_unlock_socket recursive with a ref_count. | Jeremy Allison | 6 | -56/+68 | |
As these always call exit_server, make that part of the function. Use _internal functions for the echo client. Metze please check ! Jeremy. | |||||
2010-03-31 | Fix bug 7310 - DOS attribute inconsistency with MS Office | Jeremy Allison | 1 | -0/+15 | |
On rename we need to set the archive bit on the renamed file. Jeremy | |||||
2010-03-31 | Merge branch 'master' of ssh://git.samba.org/data/git/samba | Jeremy Allison | 1 | -1/+13 | |
2010-03-31 | s3:smbd: handle SMB2 in deadtime_fn() and avoid disconnecting non idle clients | Stefan Metzmacher | 1 | -1/+13 | |
metze | |||||
2010-03-30 | Second part of fix for bug #6494 - Incorrect FileStatus returned in ↵ | Jeremy Allison | 1 | -1/+19 | |
NT_CREATE_ANDX. Ensure we do this in nttrans create too. Jeremy. | |||||
2010-03-30 | Fix for bug #7233 - print fails with jobs >4GB from Win7 clients. | Jeremy Allison | 1 | -4/+12 | |
Contains for by Sebastian Kloska <oncaphillis@snafu.de>. Submitter confirms this fixes the problem. Jeremy. | |||||
2010-03-29 | s3: Attempt to fix the build on AIX, shm_ptr seems to be a macro there | Volker Lendecke | 1 | -5/+6 | |
2010-03-28 | s3: Use bitmap_talloc for smb1 server tcons | Volker Lendecke | 1 | -3/+3 | |
2010-03-28 | s3: Use bitmap_talloc in init_dptrs | Volker Lendecke | 1 | -1/+2 | |
2010-03-28 | s3: Use bitmap_talloc in files.c | Volker Lendecke | 1 | -1/+2 | |
2010-03-28 | s3: Fix typos in a debug message in vfs_init_custom | Volker Lendecke | 1 | -1/+2 | |
2010-03-26 | Revert the part of bug fix #7233 - print fails with jobs >4GB from Win7 clients. | Jeremy Allison | 1 | -22/+4 | |
Submitter reports print file corruption after 2GB when SMBwrite etc. always write at EOF. Still working on the fix. Jeremy. | |||||
2010-03-26 | s3-smbd: Don't close stdout if we want to log to stdout. | Andreas Schneider | 1 | -1/+1 | |
2010-03-25 | Fix bug 7297 - smbd crashes with CUPS printers and no [printers] share defined. | Jeremy Allison | 1 | -1/+1 | |
Ensure we don't dereference an array with an index of -1. Jeremy. | |||||
2010-03-25 | s3: Add a comment to notify_internal_parent_init, this is pretty confusing | Volker Lendecke | 1 | -0/+6 | |
2010-03-25 | s3: Make sure our CLEAR_IF_FIRST optimization works for serverid.tdb | Volker Lendecke | 1 | -0/+4 | |
In the child, we fully re-open serverid.tdb, which leads to one fcntl lock for CLEAR_IF_FIRST detection per smbd. This opens the tdb in the parent and holds it, so that tdb_reopen_all correctly catches the CLEAR_IF_FIRST bit. | |||||
2010-03-25 | s3: Make sure our CLEAR_IF_FIRST optimization works for the notify tdbs | Volker Lendecke | 2 | -0/+31 | |
The notify tdb files are opened at tconX time, which leads to one fcntl lock for CLEAR_IF_FIRST detection per smbd. This opens the tdbs in the parent and holds it, so that tdb_reopen_all correctly catches the CLEAR_IF_FIRST bit. | |||||
2010-03-25 | s3: Make sure our CLEAR_IF_FIRST optimization works for messaging.tdb | Volker Lendecke | 1 | -0/+4 | |
In the child, we fully re-open messaging.tdb, which leads to one fcntl lock for CLEAR_IF_FIRST detection per smbd. This opens the tdb in the parent and holds it, so that tdb_reopen_all correctly catches the CLEAR_IF_FIRST bit. | |||||
2010-03-24 | Fix bug #7233 - print fails with jobs >4GB from Win7 clients. | Jeremy Allison | 1 | -25/+53 | |
Ensure we always write at end-of-file for older write calls. Jeremy. | |||||
2010-03-24 | Fix valgrind warning when source and dest stat are identical. | Jeremy Allison | 1 | -1/+3 | |
Jeremy. | |||||
2010-03-22 | s3: Implement an asynchronous echo responder process | Volker Lendecke | 1 | -19/+478 | |
This replies to echo requests when the main smbd is stuck somewhere Signed-off-by: Stefan Metzmacher <metze@samba.org> | |||||
2010-03-22 | s3:smbd: don't allow SMB2 if the async echo handler is active | Stefan Metzmacher | 1 | -1/+2 | |
metze | |||||
2010-03-22 | s3:smbd: disable SMB encryption when the echo handler is active | Stefan Metzmacher | 1 | -0/+10 | |
metze | |||||
2010-03-22 | s3:smbd: disallow readbraw and writebraw if the echo handler is active | Stefan Metzmacher | 1 | -0/+17 | |
metze | |||||
2010-03-22 | s3:smbd: disable sendfile if the echo handler is active | Stefan Metzmacher | 1 | -0/+4 | |
metze | |||||
2010-03-22 | s3:smbd: don't use recvfile if the echo handler is active | Stefan Metzmacher | 1 | -1/+2 | |
metze | |||||
2010-03-22 | s3:smbd: setup a shared memory area for the signing state | Stefan Metzmacher | 1 | -0/+80 | |
metze | |||||
2010-03-22 | s3:smbd: add echo handler information to struct smbd_server_connection | Stefan Metzmacher | 2 | -0/+22 | |
metze | |||||
2010-03-22 | s3:smbd: pass down trusted_channel via receive_smb_talloc() | Stefan Metzmacher | 1 | -3/+5 | |
metze | |||||
2010-03-22 | s3:smbd: let reply_readbraw_error use the locked socket | Stefan Metzmacher | 1 | -0/+11 | |
metze | |||||
2010-03-22 | s3:smbd: send keepalive packets under the socket lock | Stefan Metzmacher | 1 | -1/+16 | |
metze | |||||
2010-03-22 | s3:smbd: smbd_[un]lock_socket() while accessing the socket to the client | Stefan Metzmacher | 1 | -1/+24 | |
metze | |||||
2010-03-22 | s3:smbd: add smbd_[un]lock_socket() dummies | Stefan Metzmacher | 2 | -0/+13 | |
metze |