1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/source3/lib
Jeremy Allison c07ea13d30 Fix race condition in alarm lock processing noticed by Richard Sharpe <realrichardsharpe@gmail.com>.
"It seems to me that if the lock is already held by another process when we
enter this code, there is a race between the timeout and the granting. If
the lock is subsequently granted, the process releasing the lock will signal
the wait variable (or whatever) and our process will be scheduled. However,
if the timeout occurs before we are scheduled, the timeout will be delivered
first.

We will have the lock but will forget we have the lock, and never release
it."
Jeremy.
2009-01-08 10:36:10 -08:00
..
ldb Fix bug 5913. 2009-01-01 22:08:24 +01:00
netapi s3-samr: avoid all init_samr_user* functions. 2009-01-06 16:02:10 +01:00
smbconf Rename dos_errstr() to win_errstr() for consistency with Samba 4. 2008-11-01 17:19:26 +01:00
access.c Use sockaddr_storage only where we rely on the size, use sockaddr 2008-10-23 19:53:15 +02:00
account_pol.c fixed lots of places that paniced on a failed transaction_commit, 2008-08-13 11:54:10 +02:00
adt_tree.c adt_tree: change pathtree_add to return WERR instead of bool. 2008-04-13 15:33:47 +02:00
afs_settoken.c strtok -> strtok_r 2008-01-23 15:08:04 +01:00
afs.c Remove some references to get_current_username() and current_user_info 2008-05-25 11:43:57 +02:00
async_req.c s3:events: change event_add_timed() prototype to match samba4 2009-01-05 15:07:35 +01:00
async_sock.c Convert async_connect to "normal" style 2009-01-04 16:42:40 +01:00
audit.c RIP BOOL. Convert BOOL -> bool. I found a few interesting 2007-10-18 17:40:25 -07:00
bitmap.c RIP BOOL. Convert BOOL -> bool. I found a few interesting 2007-10-18 17:40:25 -07:00
charcnv.c Fix bug 5826 - Directory/Filenames get truncated when 3.2.0 client acesses old server. 2008-10-16 15:40:57 -07:00
clobber.c Cope with valgrind > 3.2.x. 2007-12-15 23:05:30 -08:00
conn_tdb.c Merge CTDB-related fixes from samba-ctdb 3.0 branch (http://samba.org/~tridge/3_0-ctdb) 2008-01-16 12:09:48 +03:00
ctdbd_conn.c s3:events: change event_add_timed() prototype to match samba4 2009-01-05 15:07:35 +01:00
dbwrap_ctdb.c Rename hex_encode to hex_encode_talloc,for consistency with samba 4 and heimdal. 2008-10-18 16:16:57 +02:00
dbwrap_file.c Rename hex_encode to hex_encode_talloc,for consistency with samba 4 and heimdal. 2008-10-18 16:16:57 +02:00
dbwrap_rbt.c Move rbtree.[ch] to lib/util. 2008-10-12 16:27:00 +02:00
dbwrap_tdb.c Rename hex_encode to hex_encode_talloc,for consistency with samba 4 and heimdal. 2008-10-18 16:16:57 +02:00
dbwrap_util.c s3:dbwrap: fix dbwrap_store_uint32() to match dbwrap_store_int32() 2008-12-29 09:05:15 +01:00
dbwrap.c first cut at adding full transactions for ctdb to samba3 2008-08-13 11:54:08 +02:00
debug.c Move some bytes from data to text, make use of the ARRAY_SIZE macro 2008-12-19 13:38:54 +01:00
display_sec.c Remove a pointless static variable 2008-12-14 12:30:53 +01:00
dmallocmsg.c r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
dprintf.c Use standard va_copy. 2008-10-18 14:15:33 +02:00
dummyroot.c r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
dummysmbd.c Simply our main loop processing. A lot :-). Correctly use events for all the previous "special" cases. 2008-10-03 14:18:35 -07:00
errmap_unix.c Make map_errno_from_nt_status() a generic call, not just a cli specific one. 2008-10-07 14:43:42 -07:00
events.c s3:events: use more tevent_common_* functions 2009-01-05 22:44:55 +01:00
fault.c Fix all warnings in source3 with gcc4.3. 2008-12-31 18:06:57 -08:00
file_id.c RIP BOOL. Convert BOOL -> bool. I found a few interesting 2007-10-18 17:40:25 -07:00
gencache.c Revert "Return timed out entries from gencache_get if timeout param != NULL" 2008-07-11 17:53:25 +02:00
iconv.c Fix various build warnings 2008-07-22 15:00:48 +02:00
idmap_cache.c Move idmap_cache.c from winbindd/ to lib/ 2008-08-26 12:56:47 -07:00
interface.c s3: Change sockaddr util function names for consistency 2008-12-03 10:40:20 -08:00
interfaces.c Make Samba 3 and Samba 4 both use the same single copy of libreplace. 2008-09-16 16:30:14 +02:00
ldap_debug_handler.c Add configure check for LBER_LOG_PRINT_FN - to intercept ldap debug. 2008-02-06 18:16:22 +01:00
ldap_escape.c r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
memcache.c Attempt to fix the build 2008-11-15 00:50:33 +01:00
messages_ctdbd.c first cut at adding full transactions for ctdb to samba3 2008-08-13 11:54:08 +02:00
messages_local.c s3-nbt: fix remaining callers of ndr_push/pull_struct_blob. 2008-09-23 09:49:56 +02:00
messages.c messages: bump debug level to 1 for "messaging_ctdb_init failed". 2008-06-26 12:31:11 +02:00
module.c Remove sys_dl*() - stubs are already provided by libreplace. 2008-11-01 03:49:49 +01:00
ms_fnmatch.c Cleanup size_t return values in callers of convert_string_allocate 2008-05-20 22:40:13 +02:00
packet.c Optimize for the common case that packet.c received exactly one full packet 2009-01-02 22:11:50 +01:00
pam_errors.c r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
pidfile.c [s3]pidfile_create: use check is_default_dyn_CONFIGFILE() since we have it. 2008-10-27 13:02:37 +01:00
popt_common.c Remove the global "cmdline_auth_info" from source3/lib/util.c 2008-12-14 14:00:43 +01:00
privileges_basic.c Use pidl for _lsa_AddPrivilegesToAccount and _lsa_RemovePrivilegesFromAccount. 2008-02-14 13:53:28 +01:00
privileges.c Convert account_pol.tdb to dbwrap 2008-04-01 14:04:23 +02:00
readline.c Coverity fix #CID: 607 - resource leak on error path. 2008-10-29 15:55:45 -07:00
recvfile.c Several fixes to our use of splice 2009-01-07 12:04:44 +01:00
secace.c Add iconv_convenience argument to size functions. 2009-01-01 04:45:33 +01:00
secacl.c Some C++ fixes 2007-12-21 09:58:21 +01:00
secdesc.c Add iconv_convenience argument to size functions. 2009-01-01 04:45:33 +01:00
select.c Rely on standard {u,}int{8,16,32,64}_t types provided by system or 2008-10-14 03:38:34 +02:00
sendfile.c Fix various build warnings 2008-07-22 15:00:48 +02:00
server_mutex.c Use a separate tdb for mutexes 2008-03-10 21:08:45 +01:00
sharesec.c Add iconv_convenience argument to size functions. 2009-01-01 04:45:33 +01:00
smbldap_util.c s/sid_to_string/sid_to_fstring/ 2007-12-15 22:47:30 +01:00
smbldap.c s3:events: change event_add_timed() prototype to match samba4 2009-01-05 15:07:35 +01:00
smbrun.c Use dup2() replacement from libreplace. 2008-11-01 03:58:14 +01:00
sock_exec.c Coverity fixes 2008-03-17 20:52:25 +01:00
substitute.c Remove unused extern struct current_user from substitute.c 2008-07-27 00:22:30 +02:00
sysacls.c Remove redundant parameter fd from SMB_VFS_SYS_ACL_SET_FD(). 2008-01-08 01:54:19 +01:00
sysquotas_4A.c Use {u,}int64_t instead of SMB_BIG_{U,}INT. 2008-10-14 01:59:36 +02:00
sysquotas_linux.c Use {u,}int64_t instead of SMB_BIG_{U,}INT. 2008-10-14 01:59:36 +02:00
sysquotas_xfs.c Use {u,}int64_t instead of SMB_BIG_{U,}INT. 2008-10-14 01:59:36 +02:00
sysquotas.c Use common util_file code. 2008-10-12 17:34:43 +02:00
system_smbd.c nsswitch: convert winbind_env_set(), winbind_on() and winbind_off() into macros 2008-02-13 10:44:52 +01:00
system.c Add code to test write_data_iov a bit 2008-12-29 13:24:28 +01:00
tallocmsg.c r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
time.c Fix use of "time offset" parameter, and add test to make sure I don't break it again :-) 2008-12-23 22:10:34 +01:00
username.c Remove Get_Pwnam and its associated static variable 2007-12-19 21:09:10 +01:00
util_file.c Use common util_file code. 2008-10-12 17:34:43 +02:00
util_nscd.c r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
util_nttoken.c Use TALLOC_ZERO_P instead of separate ZERO_STRUCTP in dup_nt_token 2008-05-10 11:17:00 +02:00
util_pw.c Make memcache_add_talloc NULL out the source pointer 2008-11-14 20:27:46 +01:00
util_reg_api.c Cleanup size_t return values in callers of convert_string_allocate 2008-05-20 22:40:13 +02:00
util_reg.c registry: move normalize_dbkey() from lib/util_reg.c to registry/reg_util.c 2008-04-12 02:41:20 +02:00
util_seaccess.c Pass all the non-inherited S4 RAW-ACL tests. 2008-11-03 22:42:53 -08:00
util_sec.c RIP BOOL. Convert BOOL -> bool. I found a few interesting 2007-10-18 17:40:25 -07:00
util_sid.c Add iconv_convenience argument to size functions. 2009-01-01 04:45:33 +01:00
util_sock.c Remove a duplicated comment 2009-01-04 18:03:23 +01:00
util_str.c Move 128 bytes from the data to the text segment 2008-12-14 13:13:37 +01:00
util_tdb.c Fix race condition in alarm lock processing noticed by Richard Sharpe <realrichardsharpe@gmail.com>. 2009-01-08 10:36:10 -08:00
util_transfer_file.c Move transfer_file and transfer_file_internal to a module of their own. 2008-01-10 14:31:25 +01:00
util_unistr.c Fix bug 5686 - libsmbclient segfaults with more than one SMBCCTX. 2008-08-12 13:35:15 -07:00
util_uuid.c Use GUID_random. 2008-10-14 02:41:20 +02:00
util.c clean event context after child is forked. 2009-01-05 15:07:31 +01:00
version.c Reorder defines for version for consistency with Samba 4. 2008-09-12 12:38:54 +02:00
wb_reqtrans.c Remove wb_trans_send/recv 2009-01-04 16:42:40 +01:00
wbclient.c async libwbclient infrastructure 2009-01-04 16:42:40 +01:00
winbind_util.c From Alexander Bokovoy 2008-01-14 11:06:46 -08:00
wins_srv.c Use common net utility code (address and sockaddr manipulation). 2008-10-23 20:41:15 +02:00