summaryrefslogtreecommitdiffstats
path: root/source/smbd
Commit message (Collapse)AuthorAgeFilesLines
* Re-fix regression noticed by Tom Schaefer <tom@umsl.edu> due toJeremy Allison2003-04-042-0/+5
| | | | | correct delete on close semantics change. Jeremy.
* Fix for very subtle POSIX lock interaction race condition found byJeremy Allison2003-04-041-6/+6
| | | | | | Herb. We need to unlock POSIX locks before notifying pending lock processes. Jeremy.
* Add staticJelmer Vernooij2003-04-021-1/+1
|
* THE Idmap patch :-)Simo Sorce2003-04-022-2/+123
| | | | | | | | | | | | | | | | | | | includes a --with-idmap=no switch to disable idmap usage if you find problems. cosmetic fixes and param aliases to separate winbind from idamp roles. A temporarily remote idmap winbind compatibility backend. As I have time I will further change code to not call directly winbind (partly done but not tested) and a specilized module will be built in place for the current glue hack. The patch has been tested locally in my limited time, the patch is simple and clear and should not reserve problems, if any just disable it. As usual, comments and fisex are welcome :-) Simo.
* changed the order of checking whether a SID is a UID or a GID in posixAndrew Tridgell2003-04-011-3/+3
| | | | | | | | acls. This is needed because sid_to_uid always claims that the sid is a user, due ot a change I made some months back. This change was suggested by Chere Zhou, but is really an interim measure. Chere is looking at a longer term solution.
* Fix vfs to work with P_LIST-ed lp_vfsobj() -- the traversal is reversed. ↵Alexander Bokovoy2003-03-311-3/+5
| | | | Based on patch from Metze
* - Support absolute paths in vfs and charset modulesJelmer Vernooij2003-03-312-13/+20
| | | | | | | - Fix typo in Makefile.in - Fix compatibility with older vfs modules (from patch by metze) - Build some modules shared by default and some static (and fall back to static when dlopen() is not available)
* NT4 is particularly fussy about getting this right.Andrew Bartlett2003-03-311-1/+0
| | | | Andrew Bartlett
* Success is not a level-0 issue...Andrew Bartlett2003-03-311-1/+1
| | | | Andrew Bartlett
* Don't try and dlsym or dlclose a NULL pointer.Andrew Bartlett2003-03-311-9/+12
| | | | | | | | | | The new modules system does not always dlopen() it's modules, and when it does, it keeps them open for the life of the server, not the life of the connection. This caused a segfault on every tree disconnect! Andrew Bartlett
* update copyright notice since it we are now almost 4 months into 2003Gerald Carter2003-03-301-1/+1
|
* This changes our handling of invalid service types that theVolker Lendecke2003-03-301-7/+12
| | | | | | | | | client requested on tconx. We now return the same error code like NT4SP6 and W2kSP3 return. TCONDEV is a little test for this. Volker
* Allow the new modules system to function with builtin vfs modules.Andrew Bartlett2003-03-281-1/+1
| | | | | | | | If we don't have a vfs path set, just pass the original file name. In future, we need to seperate the default path as a seperate paramater. Andrew Bartlett
* fix up IPC/LPT:/A: devicetype in tcon_and_XGerald Carter2003-03-281-21/+20
|
* it is possible for some of the real time signals to be used by glibc,Andrew Tridgell2003-03-282-2/+8
| | | | | which then changes SIGRTMIN. It is also possible for bash to leave some real time signals blocked at startup. This fixes both problems.
* Put backwards compatibility support for old modules in a seperate functionJelmer Vernooij2003-03-271-45/+58
|
* local_gid_to_sid() could use pdb_ldap, which for now requires ROOT.Andrew Bartlett2003-03-271-0/+2
|
* Use the new modules system in VFS. If a module can't be loaded with theJelmer Vernooij2003-03-272-34/+111
| | | | new modules system, we still fall back to the old system.
* Fix DOS del command with widelinks = False.Jeremy Allison2003-03-261-1/+2
| | | | Jeremy.
* - Support building all auth modules as .so'sJelmer Vernooij2003-03-251-1/+1
| | | | - Change 2 variable names to avoid conflicts (patch by Stephan Kulow <coolo@kde.org>)
* Print list of builtin modules in 'smbd -b'Jelmer Vernooij2003-03-251-0/+3
|
* Remove obsolete defines (because of new modules system). We needJelmer Vernooij2003-03-251-9/+0
| | | | a way to track which modules have been builtin
* win9x was suffered a case of the blues during a domain logon.Gerald Carter2003-03-251-1/+14
| | | | | For some reason, explicitly setting the service type during the tcon&X fixes this.
* Don't use old usage() function, but the one from popt.Jelmer Vernooij2003-03-241-1/+0
| | | | Remove some useless arguments
* Revoke some of the popt patch from metze I applied earlier today. It addedJelmer Vernooij2003-03-241-0/+1
| | | | some double options and broke some parameters.
* Patch from metze to generalise POPT_COMMON_SAMBA, with some minor changesJelmer Vernooij2003-03-241-4/+0
|
* Add nicer --help headersJelmer Vernooij2003-03-221-1/+1
|
* Revert bogus part of previous patch.Andrew Bartlett2003-03-221-6/+9
|
* Small clenaup patches:Andrew Bartlett2003-03-223-17/+58
| | | | | | | | | | | | | - safe_string.h - don't assume that __FUNCTION__ is available - process.c - use new workaround from safe_string.h for the same - util.c - Show how many bytes we smb_panic()ed trying to smb_xmalloc() - gencache.c - Keep valgrind quiet by always null terminating. - clistr.c - Add copyright - srvstr.h - move srvstr_push into a .c file again, as a real function. - srvstr.c - revive, with 'safe' checked srvstr_push - loadparm.c - set a default for the display charset. Andrew Bartlett
* Clobber our SMB buffers between packets. I hope this will help find bugsAndrew Bartlett2003-03-211-2/+10
| | | | | | | where we assume the buffer is zero, when it might not be (ie due to, previous packets). Andrew Bartlett
* NT4 as well as W2k respond with IPC regardless of what serviceVolker Lendecke2003-03-201-1/+1
| | | | | | | | | | | type the client requested in the TCONX when connecting to IPC$. It is very well possible that this also applies to the DISK and PRINTER share types, not only IPC. Found this while trying to join a HEAD domain from NT4SP6. Volker
* Patch from Samuel Thibault to convert messages from unix to dos charset. WorksJelmer Vernooij2003-03-201-9/+18
| | | | | on 2000. sending messages to 9x needs to be fixed, but that didn't work anyway
* Put in the new modules system. It's now used by passdb and rpc. I willJelmer Vernooij2003-03-191-3/+4
| | | | put a doc about it in dev-doc later today.
* Ensure dev in make_connection is const.Jeremy Allison2003-03-181-3/+9
| | | | Jeremy.
* Add copyright.Andrew Bartlett2003-03-171-1/+1
|
* Brain fart - make sure we truncate the right string...Andrew Bartlett2003-03-171-4/+4
| | | | Andrew Bartlett
* Fix const warnings.Andrew Bartlett2003-03-171-5/+5
| | | | Andrew Bartlett
* Add const.Andrew Bartlett2003-03-172-4/+4
|
* More statcache fixes - and add a bit more doco.Andrew Bartlett2003-03-171-9/+25
| | | | Andrew Bartlett
* Fix memory leaks and add parinoioa code to our stat() cache.Andrew Bartlett2003-03-171-2/+23
| | | | Andrew Bartlett
* Missed one when I move 'share_sanity_checks' to use an fstring for 'dev'.Andrew Bartlett2003-03-161-1/+1
| | | | Andrew Bartlett
* Make sure we mark the assumption of a fstring parameter for 'devicetype'Andrew Bartlett2003-03-162-8/+8
| | | | | | in the function prototype, and change callers to respect this. Andrew Bartlett
* Add const.Andrew Bartlett2003-03-161-7/+7
|
* - Make ReadDirName return a const char*.Andrew Bartlett2003-03-165-27/+34
| | | | | | | | - Consequential changes from that - mark our fstring/pstring assumptions in function prototypes Andrew Bartlett
* Try to avoid dereferencing a null pointer.Andrew Bartlett2003-03-161-9/+13
| | | | Andrew Bartlett
* New statcache internals - this time it's actually possible to follow what'sAndrew Bartlett2003-03-161-54/+82
| | | | | | | | going on. In particular, add doxygen documentation. Andrew Bartlett
* Minor fixes.Andrew Bartlett2003-03-151-4/+4
| | | | | | | | - signed/unsigned - quieten warning about assignment as truth value - whitespace Andrew Bartlett
* String handling parinoia fixes.Andrew Bartlett2003-03-152-47/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch enables the compile-time checking of strings assable by means of sizeof(). (Original code had the configure check reversed). This is extended to all safe_strcpy() users, push_string and pull_string, as well as the cli and srv derivitives. There is an attempt to cap strings at the end of the cli buffer, and clobber_region() of the speified length (when not -1 :-). Becouse of the way they are declared, the 'overmalloc a string' users of safe_strcpy() have been changed to use overmalloc_safe_strcpy() (which skips some of the checks). This whole ball of mud worked fine, until I pulled out my 'fix' for our statcache. When jeremy fixes that, we should be able to get back to testing this stuff. This patch also includes a 'marker' of the last caller to clobber_region (ie, the function that called pstrcpy() that called clobber_region) to assist in debugging problems that may have smashed the stack. This is printed at smb_panic() time. (Original idea and patch by metze). It also removes some unsused functions, and #if 0's some others that are unused but probably should be used in the near future. For now, this patch gives us some confidence on one class of trivial parsing error in our code. Andrew Bartlett
* Clean up the VFS module loading logic by making the parameter an P_LIST,Andrew Bartlett2003-03-151-40/+34
| | | | | | rather than a runtime-parsed string. Andrew Bartlett
* Found by my new checking code (yet to be commited):Andrew Bartlett2003-03-151-1/+1
| | | | | | Allow a service longer than 4 characters in CORE tcon. Andrew Bartlett