1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/lib
Volker Lendecke ac487bf4d0 lib: Make fd_load work for non-regular files
Follow-up to

https://lists.samba.org/archive/samba/2018-September/217992.html

and following. This also fixes a small and very theoretical race: Between the
fstat and the read call the file size might change. This would make us fail on
potentially legitimate files.

This is more complex and probably slower, but looking at the use cases I don't
think the speed matters.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13859

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Mar 26 04:43:40 UTC 2019 on sn-devel-144
2019-03-26 04:43:40 +00:00
..
addns addns: Remove some unused defines 2019-02-27 01:35:18 +01:00
afs lib: Use dom_sid_str_buf 2018-12-11 00:40:30 +01:00
async_req lib/async_req/async_sock.c set socket close on exec 2017-12-18 04:38:19 +01:00
audit_logging lib/audit_logging: actually create talloc 2018-12-20 03:19:28 +01:00
compression lib:compression: Fix undefined behavior in lzxpress 2018-11-22 22:13:27 +01:00
crypto build: Remove bld.gen_python_environments() 2019-03-21 04:06:14 +00:00
dbwrap dbwrap_tdb: Avoid double-call to talloc_get_type_abort 2018-09-14 07:49:13 +02:00
krb5_wrap krb5_wrap: Only use the required md4 header 2019-02-27 07:59:27 +00:00
ldb Fix tests whithout lmdb 2019-03-26 03:03:23 +00:00
ldb-samba build: Remove bld.gen_python_environments() 2019-03-21 04:06:14 +00:00
mscat build: Allow build when --disable-gnutls is set 2019-03-20 05:25:48 +00:00
param web_server: Remove the web port smb.conf parameter 2019-03-07 00:33:16 +00:00
printer_driver lib:printer_driver: Retrieve Class value 2019-01-28 15:44:18 +01:00
pthreadpool Revert "pthreadpool: split out pthreadpool_tevent_job from pthreadpool_tevent_job_state" 2019-01-11 23:11:14 +01:00
replace replace: remove needless vxfs header file check 2019-02-17 13:33:12 +01:00
smbconf waf: add library dependency for sendfile on Solaris 2019-02-17 13:33:15 +01:00
socket lib:socket: If returning early, set ifaces 2018-10-28 00:35:34 +02:00
talloc pytalloc: Check for errors during module initialization. 2019-03-26 03:03:23 +00:00
tdb tdb: Release tdb 1.4.0 2019-03-21 04:06:16 +00:00
tdb_wrap tdb_wrap: Use a struct initializer 2015-07-23 14:39:18 +02:00
tdr lib: Fix 1354521 Unchecked return value 2016-03-01 21:49:44 +01:00
tevent tevent: Release tevent 0.10.0 2019-03-21 04:06:16 +00:00
texpect lib:texpect: Use C99 initializer for poptOption in texpect 2019-01-28 10:29:12 +01:00
torture selftest: consistently produce high-res UTC time 2018-03-22 13:26:44 +01:00
tsocket tsocket: Simplify tsocket.h 2019-03-22 18:02:17 +00:00
util lib: Make fd_load work for non-regular files 2019-03-26 04:43:40 +00:00
README various: Remove references to about to be deleted thirdparty/dnspython 2018-12-11 20:07:18 +01:00
wscript_build Remove 'external' python module support code - use the third_party directory instead. 2015-03-06 04:41:48 +01:00

compression - Various compression algorithms (MSZIP, lzxpress)
popt - Command-line option parsing library
replace - Provides replacements for standard (POSIX, C99) functions 
          not provided by the host platform.
subunit - Utilities and bindings for working with the Subunit test result 
          reporting protocol.
talloc - Hierarchical pool based memory allocator 
tdb - Simple but fast key/value database library, supporting multiple writers
torture - Simple unit testing helper library