summaryrefslogtreecommitdiffstats
path: root/source/smbd
Commit message (Collapse)AuthorAgeFilesLines
* r25403: grab latest changes form 3.2 tree in preparation for release of ↵Gerald Carter2007-09-281-0/+10
| | | | 3.2.0pre1
* r25387: Sync with 3.2.0 svn treeGerald Carter2007-09-2724-1960/+2939
|
* r25055: Add file_id_string_tosVolker Lendecke2007-09-107-29/+29
| | | | This removes file_id_string_static and file_id_string_static2
* r24957: Merge 21867, 21869, 21870 and 21871:Volker Lendecke2007-09-043-71/+89
| | | | | | | | | | | | | Simplify calling convention of timeout_processing. lp_deadtime is only referenced in conn_idle_all(). Move sending keepalives out of the main processing loop into idle event. On the way, make lp_keepalive() a proper parameter. Move sending auth_server keepalives out of the main loop into an idle event. Move deadtime processing into an idle event. While there, simplify conn_idle_all() a bit.
* r24956: Merge r21879:Volker Lendecke2007-09-042-62/+84
| | | | | | | | | | | | | | | | | | Move process_blocking_lock_queue to a timed event. The idea is that we have blocking.c:brl_timeout as a timed event that is present whenever we do have a blocking lock pending. It fires brl_timeout_fn() which calls process_blocking_lock_queue(). Whenever we make changes to blocking_lock_queue, we trigger a recalc_brl_timeout() which sets a new brl_timout event if necessary. This makes the call to blocking_locks_timeout_ms() in setup_select_timeout() unnecessary, this is implicitly done in event_add_to_select_args() from the timed events. Volker
* r24950: Merge r21784Volker Lendecke2007-09-042-4/+1
| | | | | | | Replace smb_register_idle_event() with event_add_timed(). This fixes winbind which did not run the idle events to drop ldap connections. Volker
* r24949: Remove some static buffersVolker Lendecke2007-09-041-7/+5
|
* r24813: Reformat to 80 columns.Jeremy Allison2007-08-301-19/+32
| | | | Jeremy.
* r24811: Simple reformatting to fit the 80 columns rule.Jeremy Allison2007-08-301-63/+96
| | | | Jeremy.
* r24809: Consolidate the use of temporary talloc contexts.Volker Lendecke2007-08-3010-21/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the two functions talloc_stackframe() and talloc_tos(). * When a new talloc stackframe is allocated with talloc_stackframe(), then * the TALLOC_CTX returned with talloc_tos() is reset to that new * frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse * happens: The previous talloc_tos() is restored. * * This API is designed to be robust in the sense that if someone forgets to * TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and * resets the talloc_tos(). The original motivation for this patch was to get rid of the sid_string_static & friends buffers. Explicitly passing talloc context everywhere clutters code too much for my taste, so an implicit talloc_tos() is introduced here. Many of these static buffers are replaced by a single static pointer. The intended use would thus be that low-level functions can rather freely push stuff to talloc_tos, the upper layers clean up by freeing the stackframe. The more of these stackframes are used and correctly freed the more exact the memory cleanup happens. This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and lp_talloc_ctx (did I forget any?) So, never do a tmp_ctx = talloc_init("foo"); anymore, instead, use tmp_ctx = talloc_stackframe() :-) Volker
* r24791: Fix logic error in timeout of blocking lock processing found byJeremy Allison2007-08-291-23/+29
| | | | | | Ronnie. If a lock timeout expires, we must check we can get the lock before responding with failure. Volker is writing a torture test. Jeremy.
* r24720: Resolve differences in 3.2 and 3.2.0. 3.2 versionJeremy Allison2007-08-271-1/+2
| | | | | was correct. Jeremy.
* r24702: Remove the old API pointersVolker Lendecke2007-08-278-536/+337
|
* r24699: Actually write 24 zeros instead of zero 24's...Volker Lendecke2007-08-271-1/+1
| | | | Jeremy, please check ;-)
* r24660: Merge the inbuf/outbuf changesVolker Lendecke2007-08-2518-3607/+5330
|
* r24656: Janitor for metze:Volker Lendecke2007-08-251-3/+7
| | | | | | try to fix the build on irix... metze
* r24653: Some trivial 3_2->3_2_0 mergesVolker Lendecke2007-08-242-3/+3
|
* r24639: Add parameter "directory name cache size" - parameterizeJeremy Allison2007-08-231-20/+33
| | | | | | use of directory name cache, 100 by default. Will be needed to turn this off for *BSD systems. Jeremy.
* r24622: - deferr calling build_options();exit(0);Stefan Metzmacher2007-08-221-5/+10
| | | | | | - use poptPrintUsage() to give the user more info metze
* r24608: Minimize differences between 3.2 and 3.2.0. This is essentially a ↵Jeremy Allison2007-08-211-262/+374
| | | | | | | back-port of the 3.2 sessionsetup code to enable vl's merge to go easier. Jeremy.
* r24607: Merge the sessionsetup fix from 3.2Jeremy Allison2007-08-212-189/+274
| | | | Jeremy.
* r24603: In case of error we need to free prefix_cache otherwise on re-init ↵Simo Sorce2007-08-211-0/+1
| | | | | | the first statement will return positively but prefix_cache_hashes would be NULL
* r24600: patch from Karolin Seeger <ks@sernet.de>:Stefan Metzmacher2007-08-211-1/+4
| | | | | | | | | | smbd, nmbd and winbindd can be started with invalid options currently. The first patch attached would be a possible solution. It contains an exit if an invalid option has been used. The main problem is, that existing setups with wrong options or missing arguments in start scripts will break (which is the right behaviour from my point of view). metze
* r24595: Fix Coverity ID 393Volker Lendecke2007-08-211-2/+1
| | | | In this error case we would have used "start" not having it initialized
* r24549: Fix unix_convert to return the already converted partVolker Lendecke2007-08-191-4/+10
| | | | | | | | | | This API will change anyway when moving away from pstrings. It took so long to fix, because that rename bug I just fixed gave make test failures that had nothing to do with this one. I have samba4 tests for both bugs, will check them in when the build farm has caught up
* r24548: Fix the case-changing renamesVolker Lendecke2007-08-192-15/+29
| | | | | This was broken when I changed reply_mv to wrap in a open_file_ntcreate call, unix_convert on the destination was called twice
* r24546: Fix some C++ and type-punned warningsVolker Lendecke2007-08-191-1/+1
|
* r24499: Move the checks for DOS error codes on open to a function.Jeremy Allison2007-08-164-95/+28
| | | | Jeremy.
* r24497: Revert r24485 -- this needs more thoughtVolker Lendecke2007-08-161-1/+1
|
* r24485: Even in the failure case unix_convert must pass the already convertedVolker Lendecke2007-08-161-1/+1
| | | | part of the string to the caller.
* r24476: Fix the mappings in reply_opeXXX calls. Now to test renames.Jeremy Allison2007-08-161-0/+30
| | | | Jeremy.
* r24475: Fix the error mapping for SMB_POSIX_PATH_OPEN.Jeremy Allison2007-08-161-0/+11
| | | | Jeremy.
* r24474: Map error value NT_STATUS_OBJECT_NAME_COLLISIONJeremy Allison2007-08-151-47/+50
| | | | | to ERRDOS, ERRfilexists for NTCreateX and NTTransCreate. Jeremy.
* r24472: Start fixing up the mapping of OBJECT_NAME_COLLISIONJeremy Allison2007-08-151-1/+11
| | | | | to DOS error ERRDOS, ERRfilexists on open calls. Jeremy.
* r24471: Revert inadvertant commit.Jeremy Allison2007-08-153-313/+49
| | | | Jeremy.
* r24470: Start fixing up the mapping of OBJECT_NAME_COLLISIONJeremy Allison2007-08-153-49/+313
| | | | | to DOS error ERRDOS, ERRfilexists on open calls. Jeremy.
* r24461: Fix Bug 4852, thank to anto <sistemac@prosoft.ba> for reporting it.Volker Lendecke2007-08-151-0/+10
|
* r24314: Attempt to fix bug 4868Volker Lendecke2007-08-101-0/+1
|
* r24268: Fix two crashes for spoolssVolker Lendecke2007-08-071-3/+4
| | | | strlcpy does not like a NULL source. Fix a use-after-free.
* r24253: From Jan Martin <Jan.Martin@rwedea.com>.Jeremy Allison2007-08-061-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ---------------------------------------------------------- In rare cases, Samba 3.0.25b shows directory contents at the wrong position in the file tree when displaying a subdirectory of a DFS link. The problem occurs whenever Windows XP asks for a DFS referral for a subdirectory of a DFS link with a trailing backslash. Windows does not do this very often, but we saw it several times per day on our central DFS server. smbd/msdfs.c, dfs_path_lookup() does the following with the requested path: - in line 390, the local copy 'localpath' is 'unix_convert'ed; the trailing backslash is removed inside unix_convert - in lines 417-20, 'dfspath' (another copy of the requested path) is mangled another way without removing trailing backslashes That's why the following loop (lines 435-461) that is meant to synchronously cut off the last path component from both strings until it comes to a DFS link, does not handle both strings the same. When the original path ended with a backslash, 'canon_dfspath' has always one component more than 'localpath', so that *consumedcntp gets too big in line 446. This value is reported to the client. ---------------------------------------------------------- Bug #4860. Jeremy.
* r24164: Fix for write cache corruption bug reported by Jean-Francois ↵Jeremy Allison2007-08-031-10/+20
| | | | | | | Panisset <panisset@A52.com>. Awaiting confirmation from reporter. Jeremy.
* r24122: merge from SAMBA_3_2:Stefan Metzmacher2007-08-025-12/+20
| | | | | | | | | add a file_id_create() hook into the VFS layer it's needed for some cluster filesystems to overload this function. metze
* r24071: Fix a missing END_PROFILE callVolker Lendecke2007-07-301-0/+1
|
* r24070: Apply some constVolker Lendecke2007-07-291-1/+1
|
* r24050: Fix a typoVolker Lendecke2007-07-251-1/+3
|
* r24049: Some more 64-bit warningsVolker Lendecke2007-07-251-1/+1
|
* r24030: merge from http://samba.org/~tridge/samba_3_2_ctdb/:Stefan Metzmacher2007-07-241-5/+8
| | | | | | the claim_connection() must come after the sockets are open metze
* r23996: One more constVolker Lendecke2007-07-231-1/+1
|
* r23992: Some constVolker Lendecke2007-07-221-2/+2
|
* r23990: Reformatting for 80 cols and trailing whitespaceVolker Lendecke2007-07-221-11/+18
|