Volker Lendecke
747a0b440f
s3: Remove unused "mypid" from count_current_connections() state
2010-03-01 12:18:12 +01:00
Volker Lendecke
2238260aa3
s3: Use talloc_tos() in yield_connection()
2010-02-28 20:45:21 +01:00
Volker Lendecke
5c40aa59d7
s3: Remove unused count_all_current_connections()
2010-02-28 20:45:21 +01:00
Volker Lendecke
a781b78417
Remove smb_np_struct
2008-10-13 20:59:33 +02:00
Volker Lendecke
f0a2706486
Make use of talloc_tos()
2008-10-11 09:02:18 +02:00
Volker Lendecke
200b0deaef
Fix some nonempty blank lines
2008-10-11 09:02:18 +02:00
Volker Lendecke
40f5eab5eb
Wrap the unix token info in a unix_user_token in auth_serversupplied_info
...
No functional change, this is a preparation for more current_user ref removal
(This used to be commit dcaedf345e
)
2008-06-19 18:51:37 +02:00
Volker Lendecke
53a623d8a6
Remove the unix token info from connection_struct
...
(This used to be commit 2834dacc8d
)
2008-05-10 11:17:01 +02:00
Alexander Bokovoy
68694369fc
Merge CTDB-related fixes from samba-ctdb 3.0 branch ( http://samba.org/~tridge/3_0-ctdb )
...
Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit 0c8e23afbb
)
2008-01-16 12:09:48 +03:00
Volker Lendecke
3cc3b9e187
use talloc_tos in a few more places
...
(This used to be commit 65dd869bea
)
2008-01-10 13:19:58 +01:00
Jeremy Allison
5b0b4f23ef
Remove most of the remaining globals out of lib/util_sock.c.
...
I have a plan for dealing with the remaining..... Watch
this space.
Jeremy.
(This used to be commit 963fc76852
)
2007-11-03 23:20:10 -07:00
Jeremy Allison
25074433f4
I can't get away without a 'length' arg. :-).
...
Jeremy.
(This used to be commit 95d01279a5
)
2007-11-03 18:41:26 -07:00
Jeremy Allison
6658165d5e
Stop get_peer_addr() and client_addr() from using global
...
statics. Part of my library cleanups.
Jeremy.
(This used to be commit e848506c85
)
2007-11-03 18:15:45 -07:00
Jeremy Allison
30191d1a57
RIP BOOL. Convert BOOL -> bool. I found a few interesting
...
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
(This used to be commit f35a266b3c
)
2007-10-18 17:40:25 -07:00
Gerald (Jerry) Carter
e5a951325a
[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
...
(This used to be commit 5c6c8e1fe9
)
2007-10-10 15:34:30 -05:00
Volker Lendecke
456305325c
r24268: Fix two crashes for spoolss
...
strlcpy does not like a NULL source. Fix a use-after-free.
(This used to be commit c2a2145017
)
2007-10-10 12:29:22 -05:00
Andrew Tridgell
5e54558c6d
r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
...
(This used to be commit b0132e94fc
)
2007-10-10 12:28:22 -05:00
Jeremy Allison
d824b98f80
r23779: Change from v2 or later to v3 or later.
...
Jeremy.
(This used to be commit 407e6e695b
)
2007-10-10 12:28:20 -05:00
Volker Lendecke
3a931bc8fc
r23221: Fix a bad merge, avoid a memory leak and tdb lock problem
...
(This used to be commit 2e2415655d
)
2007-10-10 12:22:55 -05:00
Volker Lendecke
054bf2fc8b
r23171: Convert connections.tdb to dbwrap
...
(This used to be commit 80a1f43825
)
2007-10-10 12:22:52 -05:00
Volker Lendecke
14e25f10d6
r23168: Move the lp_max_connections() into service.c.
...
(This used to be commit 4afe37d431
)
2007-10-10 12:22:51 -05:00
Volker Lendecke
f3c477c631
r23167: Remove an unused parameter
...
(This used to be commit 3452a870d5
)
2007-10-10 12:22:51 -05:00
Volker Lendecke
4aa44f7475
r22761: This introduces lib/conn_tdb.c with two main functions: connections_traverse
...
and connections_forall. This centralizes all the routines that did individual
tdb_open("connections.tdb") and direct tdb_traverse.
Volker
(This used to be commit e43e94cda1
)
2007-10-10 12:21:55 -05:00
James Peach
44f5211c17
r22418: Support running under launchd. We abstract the method of obtaining
...
sockets to listen on a little, because in the launchd case these
are provided for us. We also add an idle timeout so that a daemon
can exit after a period of inactivity.
(This used to be commit fc8589a337
)
2007-10-10 12:19:33 -05:00
Jeremy Allison
74a07edb50
r22266: Fix bug #4512 - we were returning a volume label greater than
...
32 unicode chars. Windows XP doesn't like that :-).
Jeremy
(This used to be commit e59b5276b5
)
2007-10-10 12:19:23 -05:00
Stefan Metzmacher
bc2b6436d0
r22009: change TDB_DATA from char * to unsigned char *
...
and fix all compiler warnings in the users
metze
(This used to be commit 3a28443079
)
2007-10-10 12:19:00 -05:00
Stefan Metzmacher
b9461058d5
r22008: use string_term_tdb_data()
...
metze
(This used to be commit 1f047d7e31
)
2007-10-10 12:19:00 -05:00
Jeremy Allison
fbdcf2663b
r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need
...
to do the upper layer directories but this is what
everyone is waiting for....
Jeremy.
(This used to be commit 9dafb7f48c
)
2007-10-10 11:19:14 -05:00
Gerald Carter
54abd2aa66
r10656: BIG merge from trunk. Features not copied over
...
* \PIPE\unixinfo
* winbindd's {group,alias}membership new functions
* winbindd's lookupsids() functionality
* swat (trunk changes to be reverted as per discussion with Deryck)
(This used to be commit 939c3cb5d7
)
2007-10-10 11:04:48 -05:00
Gerald Carter
5f67f01258
r4019: better error logging in register_message_flags() from Rob
...
(This used to be commit 5fc0f838e7
)
2007-10-10 10:53:28 -05:00
Gerald Carter
1842fde7d1
r1885: tighten the cache consistency with the ntprinters.tdb entry an the in memory cache associated with open printer handles; also make sure that register_messages_flags() doesn't overwrite the originally registers flags
...
(This used to be commit 540daf71d8
)
2007-10-10 10:52:23 -05:00
Gerald Carter
386a11f49e
r1011: fix bad merge (from a few months ago) and ensure that we always use tdb_open_log() instead of tdb_open_ex()
...
(This used to be commit e65564ab4a
)
2007-10-10 10:51:53 -05:00
Gerald Carter
df6d2db4ce
merge from old APP_HEAD
...
* remove corrupt tdb and shutdown (only for printing tdbs, connections,
sessionid & locking)
* decrement smbd counter in connections.tdb in smb_panic()
* various Makefile hack to get things to link
'max smbd processes' looks like it might be broken. The counter KEY is not
being set. Will look into that tomorrow.
(This used to be commit 6e22c5da92
)
2004-02-12 05:24:02 +00:00
Jeremy Allison
0899066fd6
Got us happy running under valgrind again :-).
...
Jeremy.
(This used to be commit b6ab9d7361
)
2003-05-31 02:03:58 +00:00
Jeremy Allison
1fdbe30685
Fixes to stop valgrind complaining about uninitialised memory when it's
...
copying clobbered buffer areas and doing hashes on them and sending
them onto the wire.
Jeremy.
(This used to be commit 7dfcf714ae
)
2003-05-31 01:48:59 +00:00
Tim Potter
bdb7a74419
Whitespace syncup.
...
(This used to be commit 8fe5bab565
)
2003-04-14 03:48:26 +00:00
Andrew Bartlett
1f499a79f5
(merge from HEAD)
...
Small clenaup patches:
- 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.
- connection.c - use safe_strcpy()
Andrew Bartlett
(This used to be commit c91e76bddb
)
2003-03-22 13:47:42 +00:00
Andrew Bartlett
634c54310c
Merge from HEAD - make Samba compile with -Wwrite-strings without additional
...
warnings. (Adds a lot of const).
Andrew Bartlett
(This used to be commit 3a7458f947
)
2003-01-03 08:28:12 +00:00
Gerald Carter
a834a73e34
sync'ing up for 3.0alpha20 release
...
(This used to be commit 65e7b5273b
)
2002-09-25 15:19:00 +00:00
Jelmer Vernooij
127e77e6e3
Sync 3.0 branch with head
...
(This used to be commit 42615b945e
)
2002-08-17 15:27:10 +00:00
Tim Potter
cd68afe312
Removed version number from file header.
...
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
(This used to be commit 6a58c9bd06
)
2002-01-30 06:08:46 +00:00
Jeremy Allison
9e007457e4
Removed MAXSTATUS which was set incorrectly - thus causing tdb traversal
...
of the connections db on smbd startup. This should fix the Solaris large
load bug.... (fingers crossed).
Jeremy.
(This used to be commit 5b2b9c25af
)
2002-01-14 19:34:28 +00:00
Jeremy Allison
7acc2b977c
Fix for connectinos.tdb error message from "Richard Bollinger" <rabollinger@home.com>
...
Jeremy.
(This used to be commit f1f1a14598
)
2001-10-16 08:39:43 +00:00
Tim Potter
dc1fc3ee8e
Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.
...
(This used to be commit 2d0922b0ea
)
2001-10-02 04:29:50 +00:00
Jeremy Allison
79a9902d39
Removed unneeded variable, added comment on deadlock prevention.
...
Jeremy.
(This used to be commit 3f52632ac9
)
2001-09-19 07:06:34 +00:00
Andrew Tridgell
01bb01b3ca
removed anti-race code that could cause a classic ABBA deadlock
...
I'd rather get the connection count wrong with a small probability
than deadlock
(This used to be commit d4e4e81328
)
2001-09-19 06:46:35 +00:00
Andrew Tridgell
9a9ac2739b
got rid of USE_TDB_MMAP_FLAG as its not needed any more
...
(This used to be commit c26e0d3f27
)
2001-09-06 22:08:19 +00:00
Jeremy Allison
996719cce2
Added "use mmap" for HPUX.
...
Jeremy.
(This used to be commit 840802f106
)
2001-07-30 22:21:31 +00:00
Jeremy Allison
54068ae8f3
Tidied up calling yield_connection on connection allocation fail.
...
Restore debug message to level zero.
Jeremy.
(This used to be commit 0b13f495b3
)
2001-07-17 22:04:46 +00:00
Jeremy Allison
c2aa4b762f
Connection record not existing is not a debug level 0.
...
Jeremy.
(This used to be commit d7da59f54e
)
2001-07-17 21:32:33 +00:00