summaryrefslogtreecommitdiffstats
path: root/source/smbd/connection.c
Commit message (Collapse)AuthorAgeFilesLines
* Start of merge to 2_2_RELEASE branch for release.Jeremy Allison2002-04-301-2/+2
| | | | Jeremy.
* Move over to RELEASE branch.Jeremy Allison2002-02-011-6/+5
| | | | Jeremy.
* Sync-up with SAMBA_2_2 branch.Jeremy Allison2001-10-111-29/+10
| | | | Jeremy.
* Syncup getting ready for release.Jeremy Allison2001-07-061-779/+104
| | | | Jeremy.
* Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison2001-04-081-1/+1
| | | | Jeremy.
* Fix incorrrect cast. From Richard Bollinger <rabollinger@home.com>John Terpstra2001-03-011-1/+1
|
* Sync up with appliance-head printer and other changes. Makes merges easier.Jeremy Allison2001-01-121-0/+2
| | | | Jeremy.
* Patch from Richard Bollinger for dead entries being left in connections tdb.Jeremy Allison2001-01-081-1/+1
| | | | Jeremy.
* Raft of fixes - many of these will be merged into HEAD/appliance-head.Jeremy Allison2000-12-141-0/+9
| | | | | | Fixed many memory leaks in new parse_lsa.c code (TIM - ALWAYS USE INSURE !!!!). Fixed smbcacls leaks. Jeremy.
* Raft of changes to sync up with most things in appliance head.Jeremy Allison2000-11-171-3/+0
| | | | | | Added "hide local users" option. Added Andrew's changes for message sending. Jeremy.
* Added (finally!:-) David Lee's utmp patch for 2.2. Thanks David !Jeremy Allison2000-10-281-84/+594
| | | | Jeremy.
* patch from Dominik Kubla <dominik.kubla@uni-mainz.de>Andrew Tridgell2000-05-101-3/+3
|
* Added sys_fork() and sys_getpid() functions to stop the overheadJeremy Allison2000-05-021-3/+3
| | | | | of doing a system call every time we want to just get our pid. Jeremy.
* finally got sick of the "extern int Client" code and the stupidAndrew Tridgell2000-04-111-4/+2
| | | | | | | | | | | | | | | | assumption that we have one socket everywhere while doing so I discovered a few bugs! 1) the clientgen session retarget code if used from smbd or nmbd would cause a crash as it called close_sockets() which closed our main socket! fixed by removing close_sockets() completely - it is unnecessary 2) the caching in client_addr() and client_name() was bogus - it could easily get fooled and give the wrong result. fixed. 3) the retarget could could recurse, allowing an easy denial of service attack on nmbd. fixed.
* utmp compile fix from peter@cadcamlab.orgAndrew Tridgell2000-04-101-2/+2
|
* rpc_parse/parse_spoolss.c: Added checks on mallocs/overflow checks on all prs_xxJeremy Allison2000-03-251-32/+84
| | | | | | calls. smbd/connection.c: Fix from David Lee <T.D.Lee@durham.ac.uk>. Jeremy.
* acconfig.h configure configure.in: Added check for UT_SYSLEN for utmp code.Jeremy Allison2000-03-221-0/+2
| | | | | | | | | | | | | | include/byteorder.h: Added alignment macros. include/nameserv.h: Added defines for msg_type field options - from rfc1002. lib/time.c: Typo fix. lib/util_unistr.c: Updates from UNICODE branch. printing/nt_printing.c: bzero -> memset. smbd/connection.c: Added check for UT_SYSLEN for utmp code. Other fixes : Rollback of unapproved commit from Luke. Please *ask* next time before doing large changes to HEAD. Jeremy.
* Added utmp fix from David Lee <T.D.Lee@durham.ac.uk>.Jeremy Allison2000-01-121-0/+212
| | | | Jeremy.
* don't close the database after each claim_connection()Andrew Tridgell2000-01-031-2/+0
|
* - added tdb_flags option to tdb_open()Andrew Tridgell2000-01-021-22/+6
| | | | | | | | | - added TDB_CLEAR_IF_FIRST flag to clear the database if this is the first attached process. Useful for non-persistent databases like our locking area (this will also make upgrades to new database layouts easier) - use lock_path() in a couple of places - leave connections database open while smbd running - cleaned up some tdb code a little, using macros for constants
* converted all our existing shared memory code to use a tdb databaseAndrew Tridgell1999-12-211-23/+4
| | | | | | | | | | | | | instead of either sysv or mmap shared memory or lock files. this means we can now completely remove locking_shm.c locking_slow.c shmem.c shmem_sysv.c and lots of other things also got simpler locking.c got a bit larger, but is much better compartmentalised now
* first cut at using the tdb code for the connections structure, theAndrew Tridgell1999-12-211-155/+70
| | | | | SWAT status page and smbstatus. It made the code _much_ simpler, I wish we'd done a database module a long time ago!
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-7/+7
|
* Added the same open()/fopen()/creat()/mmap() -> sys_XXX calls.Jeremy Allison1998-11-171-3/+3
| | | | | | | | | | Tidied up some of the mess (no other word for it). Still doesn't compile cleanly. There are calls with incorrect parameters that don't seem to be doing the right thing. This code still needs surgery :-(. Jeremy.
* Fixed sys_lseek and seek_file calls so all returnsJeremy Allison1998-10-181-1/+5
| | | | | are *checked* :-). Jeremy.
* More 64 bit stuff - now the fcntl locks are 64 bit clean.Jeremy Allison1998-09-041-9/+9
| | | | | | Nearly at the stage where I can expose the 64-bit-ness to the NT clients.... Jeremy.
* Ok - this is the 64 bit widening check in. It changes the configureJeremy Allison1998-09-031-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | to check for stat64 and friends, and then changes much of Samba to use the data type SMB_OFF_T for file size information. stat/fstat/lstat/lseek/ftruncate have now become sys_stat etc. to hide the 64 bit calls if needed. Note that this still does not expose 64 bit functionality to the client, as the changes to the reply_xxx smb's are not yet done. This code change should make these changes possible. Still to do before full 64 bit-ness to the client: fcntl lock code. statfs code widening of dev_t and ino_t (now possible due to SMB_DEV_T and SMB_OFF_T types being in place). Let me know if wierd things happen after this check-in and I'll fix them :-). Jeremy.
* this is the bug change to using connection_struct* instead of cnum.Andrew Tridgell1998-08-141-11/+13
| | | | | | | | Connections[] is now a local array in server.c I might have broken something with this change. In particular the oplock code is suspect and some .dll files aren't being oplocked when I expected them to be. I'll look at it after I've got some sleep.
* This is a security audit change of the main source.Jeremy Allison1998-05-121-6/+6
| | | | | | | | | | | | | | | | | | It removed all ocurrences of the following functions : sprintf strcpy strcat The replacements are slprintf, safe_strcpy and safe_strcat. It should not be possible to use code in Samba that uses sprintf, strcpy or strcat, only the safe_equivalents. Once Andrew has fixed the slprintf implementation then this code will be moved back to the 1.9.18 code stream. Jeremy.
* this isn't a big commit, it just looks like it :-)Andrew Tridgell1998-03-171-1/+2
| | | | | | | | | I needed the client_name() and client_addr() functions in swat so I could tell who was connecting from where. The problem was that these functions didn't take a file descriptor parameter they just used the global "Client". So I needed to change all calls to pass a parameter ... lots of files.
* - added the ability to kill off individual connections from SWAT (fromAndrew Tridgell1998-03-151-0/+221
the status page) - split the claim_connection() code into its own file - fixed the claim_connection() code to lock the file when manipulating it - always claim a null connection at startup - fixed a bug in the pidfile code