1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-06 13:18:07 +03:00
samba-mirror/source3/lib
Volker Lendecke fcd595a464 lib: Factor out append_namearray from set_namearray
We'll have to add to an existing namearray soon.

This turns one talloc_array() into a set of reallocs. This is slower,
but set_namearray is only used for smb.conf entries where we don't
expect hundreds or more entries to add. I've done this to avoid array
length calculations, but if it turns out to be too slow we can get
smarter again.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=15688
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2024-07-31 08:39:29 +00:00
..
ABI Decouple ldap-ssl-ads from ldap-ssl option 2020-07-13 10:41:37 +00:00
dbwrap lib: Remove timeval_set() 2024-03-22 06:07:42 +00:00
eventlog s3:eventlog: Fix code spelling 2023-08-08 04:39:37 +00:00
netapi lib: Use cli_credentials_add_gensec_features in a few places 2024-06-04 07:11:35 +00:00
smbconf Use python.h from libreplace 2023-11-20 15:37:33 +00:00
addrchange.c lib-addrchange: Change API to fill up if_index value from netlink msg 2024-04-16 23:51:45 +00:00
addrchange.h lib-addrchange: Change API to fill up if_index value from netlink msg 2024-04-16 23:51:45 +00:00
adouble.c lib: Move 286 bytes from R/W data to R/O text segment 2024-06-24 16:21:32 +00:00
adouble.h vfs_fruit: add option fruit:validate_afpinfo = yes|no (default: yes) 2023-10-24 21:31:38 +00:00
adt_tree.c lib: Whitespace fixes 2022-10-27 18:18:36 +00:00
audit.c s3:lib: Use C99 initializer for audit_category_tab 2019-01-28 10:29:23 +01:00
avahi.c
background.c smbd: remove process shortname arg from reinit_after_fork() 2022-12-14 01:38:29 +00:00
background.h lib: Add required includes to source3/lib/background.h 2021-04-01 19:32:36 +00:00
cbuf.c lib: Remove an #include "includes.h" 2018-07-24 20:36:49 +02:00
cbuf.h s3:lib: Fix code spelling 2023-07-13 05:41:36 +00:00
charcnv.c libsmb: "clang-format" for an if-condition 2024-06-24 16:21:32 +00:00
cleanupdb.c lib: Avoid an #include includes.h 2022-10-27 18:18:36 +00:00
cleanupdb.h lib: Avoid an #include includes.h 2022-10-27 18:18:36 +00:00
cluster_support.c
cluster_support.h
cmdline_contexts.c lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
cmdline_contexts.h s3:lib: Introduce cmdline context wrapper 2018-09-07 17:26:14 +02:00
ctdb_dummy.c s3:ctdbd_conn: add ctdbd_all_ip_foreach() helper 2024-01-26 17:00:32 +00:00
ctdbd_conn.c lib: Fix whitespace 2024-03-28 08:05:35 +00:00
dmallocmsg.c
dumpcore.c lib: Give lib/util/util_file.c its own header file 2024-04-16 23:51:45 +00:00
errmap_unix.c lib: Translate ENXIO to NT_STATUS_ILLEGAL_FUNCTION 2023-07-03 19:40:35 +00:00
file_id.c smbd: Remove unused [push_pull]_file_id_24 2024-04-30 23:48:21 +00:00
file_id.h smbd: Remove unused [push_pull]_file_id_24 2024-04-30 23:48:21 +00:00
filename_util.c lib: Move 16 bytes to readonly .text segment 2023-01-10 00:28:37 +00:00
fstring.c s3-lib: restore truncating behavior of push_ascii_nstring() 2022-10-25 16:25:40 +00:00
g_lock.c smbd: Fix a typo in a few places 2024-05-15 17:56:24 +00:00
gencache.c s3:lib: Create the cache path of user gencache recursively 2021-01-06 23:59:58 +00:00
gencache.h gencache: Remove transaction-based tdb 2018-11-06 18:57:26 +01:00
global_contexts.c lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
global_contexts.h lib: give global_contexts.c its own header file 2021-01-08 20:31:33 +00:00
id_cache.c s3:lib: Add missing break in switch statement 2021-02-01 21:50:32 +00:00
id_cache.h
idmap_cache.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
idmap_cache.h lib: Remove some unused code 2019-02-28 13:53:40 +00:00
interface.c lib-interface: Change API for interface 'options' 2024-04-16 23:51:45 +00:00
interface.h lib-interface: Change API for interface 'options' 2024-04-16 23:51:45 +00:00
ldap_debug_handler.c
ldap_escape.c s3:lib: Fix code spelling 2023-07-13 05:41:36 +00:00
lsa.c
messages_ctdb_ref.c s3:lib/messages*: s/getpid/tevent_cached_getpid 2022-07-25 17:34:33 +00:00
messages_ctdb_ref.h messaging: Add messages_ctdb_ref 2017-07-25 17:43:18 +02:00
messages_ctdb.c s3/lib: Prevent use after free of messaging_ctdb_fde_ev structs 2023-01-26 16:03:49 +00:00
messages_ctdb.h messages_ctdb: Add messaging_ctdb_connection 2017-07-25 17:43:18 +02:00
messages_util.c
messages_util.h
messages.c lib: Give tallocmsg.c its own header 2024-03-28 08:05:35 +00:00
ms_fnmatch.c s3:lib: Fix code spelling 2023-07-13 05:41:36 +00:00
namemap_cache.c lib: relicense smb_strtoul(l) under LGPLv3 2020-08-03 22:21:02 +00:00
namemap_cache.h namemap_cache: Absorb the expired calculation into namemap_cache.c 2018-10-16 18:00:10 +02:00
per_thread_cwd.c s3:lib: Fix code spelling 2023-07-13 05:41:36 +00:00
privileges.c lib: Simplify grant_privilege_bitmap() 2024-01-23 23:28:31 +00:00
privileges.h
readdir_attr.h
recvfile.c
sendfile.c lib;smbd: Fix the -Os build by initializing variables 2021-08-06 17:22:30 +00:00
server_id_db_util.c
server_id_db_util.h
server_id_watch.c lib: Avoid an unnecessary include 2020-01-14 19:17:28 +00:00
server_id_watch.h lib: Remove "msg_ctx" from server_id_watch_send() 2020-01-14 19:17:28 +00:00
server_mutex.c lib: Pass mem_ctx to lock_path() 2018-08-17 11:30:10 +02:00
serverid.c lib/messaging: Move messages_dgm out of source3 2020-05-06 00:06:40 +00:00
sessionid_tdb.c s3:lib: let sessionid_traverse_read() report if the session was authenticated 2024-05-23 12:35:37 +00:00
sharesec.c s3:lib: Make sure struct security_ace is fully initialized 2024-06-24 06:14:35 +00:00
smbd_shim.c smbd: Remove source3/smbd/statcache.c 2022-12-14 22:54:29 +00:00
smbd_shim.h smbd: Remove source3/smbd/statcache.c 2022-12-14 22:54:29 +00:00
smbldap.c s3:lib: Fix a typo in MACRO 2024-07-17 08:49:46 +00:00
smbrun.c lib: Use closefrom() in smbrun.c 2020-01-19 18:29:39 +00:00
srprs.c s3: net: Harden srprs_str() against memcmp overread. 2019-05-15 21:26:12 +00:00
srprs.h s3:lib: Fix code spelling 2023-07-13 05:41:36 +00:00
string_replace.c lib: Replace a call to TALLOC_ZERO() 2021-04-19 18:18:31 +00:00
string_replace.h s3: move fruit catia string replace mappings to s3/lib/ 2019-07-12 21:31:29 +00:00
substitute_generic.c lib: Remove fstring_sub() that was used just once 2022-12-12 21:16:33 +00:00
substitute.c s3:lib: Fix code spelling 2023-07-13 05:41:36 +00:00
substitute.h lib: Add get_current_user_info_domain() 2022-12-12 21:16:33 +00:00
sysacls.c s3:lib: Fix code spelling 2023-07-13 05:41:36 +00:00
sysquotas_4A.c
sysquotas_4B.c sysquotas_4B: raise log level of a sometimes too noisy message 2019-02-17 13:33:14 +01:00
sysquotas_jfs2.c add sysquotas_jfs2.c 2019-02-17 13:33:13 +01:00
sysquotas_linux.c sysquotas_linux: fix inode limit setting, which is not depeding on blocksize 2019-02-17 13:33:12 +01:00
sysquotas_nfs.c sysquotas_nfs: also honor reported inode/file limits 2019-02-17 13:33:13 +01:00
sysquotas_xfs.c sysquotas_xfs: fix inode limit setting, which is not depeding on blocksize 2019-02-17 13:33:12 +01:00
sysquotas.c s3:lib: Use portable format specifiers 2023-08-14 04:57:34 +00:00
system_smbd.c lib: Fix some whitespace 2023-12-19 16:05:36 +00:00
system.c smbd: Simplify copy_stat_ex_timestamps 2024-06-28 13:26:24 +00:00
tallocmsg.c lib: Use fdopen_keepfd() 2024-04-16 23:51:45 +00:00
tallocmsg.h lib: Give tallocmsg.c its own header 2024-03-28 08:05:35 +00:00
tdb_validate.c lib: Fix tdb_validate() for incorrect tdb entries 2023-04-01 05:25:28 +00:00
tdb_validate.h
test_adouble.c CVE-2021-44142: libadouble: add basic cmocka tests 2022-01-31 15:27:37 +00:00
test_tldap.c Fix uClibc build on 64bit platforms by including stdint.h 2019-05-19 17:34:20 +00:00
tevent_barrier.c
tevent_barrier.h
tevent_glib_glue_tests.c s3/lib: add a tevent_glib_glue subsystem test 2019-04-24 18:32:14 +00:00
tevent_glib_glue.c s3:lib: Fix code spelling 2023-07-13 05:41:36 +00:00
tevent_glib_glue.h s3/lib: new tevent_glib_glue subsystem 2019-04-24 18:32:14 +00:00
time.c s3:lib: Define TIME_FIXUP_CONSTANT_INT using INT64_C() macro 2023-12-21 20:21:34 +00:00
tldap_gensec_bind.c s3:tldap: add support for [START]TLS 2024-04-23 23:50:34 +00:00
tldap_gensec_bind.h s3:tldap: make tldap_gensec_bind_send/recv public 2024-04-23 23:50:34 +00:00
tldap_tls_connect.c s3:tldap: add support for [START]TLS 2024-04-23 23:50:34 +00:00
tldap_tls_connect.h s3:tldap: add support for [START]TLS 2024-04-23 23:50:34 +00:00
tldap_util.c lib: relicense smb_strtoul(l) under LGPLv3 2020-08-03 22:21:02 +00:00
tldap.c s3:tldap: add support for [START]TLS 2024-04-23 23:50:34 +00:00
username.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
util_builtin.c
util_cluster.c lib: Avoid an #include includes.h 2022-10-27 18:18:36 +00:00
util_cluster.h
util_ea.c s3:lib: Add missing newlines to logging messages 2023-08-08 04:39:38 +00:00
util_ea.h
util_event.c lib: #include "util_event.h" only where needed 2018-04-24 22:26:22 +02:00
util_file.c lib: Give lib/util/util_file.c its own header file 2024-04-16 23:51:45 +00:00
util_file.h s3: lib: Rename all uses of file_pload_XXX -> file_ploadv_XXX. 2019-05-24 19:00:06 +00:00
util_macstreams.c s3:lib: move Mac streams util functions to s3/lib 2019-07-12 21:31:29 +00:00
util_macstreams.h s3:lib: move Mac streams util functions to s3/lib 2019-07-12 21:31:29 +00:00
util_malloc.c s3:lib: Fix code spelling 2023-07-13 05:41:36 +00:00
util_matching.c s3:lib: add samba_path_matching_regex_sub1_create() 2021-07-01 13:02:31 +00:00
util_matching.h s3:lib: add samba_path_matching_regex_sub1_create() 2021-07-01 13:02:31 +00:00
util_namearray.c lib: Factor out append_namearray from set_namearray 2024-07-31 08:39:29 +00:00
util_names.c CVE-2020-25717: s3:lib: add lp_allow_trusted_domains() logic to is_allowed_domain() 2021-11-09 19:45:33 +00:00
util_nscd.c
util_nttoken.c s3-lib: Modify merge_nt_token() into a GPO-specifc merge with SYSTEM 2023-09-26 23:45:36 +00:00
util_path.c s3/lib: move path_to_strv() to util_path.c 2024-07-26 10:06:30 +00:00
util_path.h s3/lib: move path_to_strv() to util_path.c 2024-07-26 10:06:30 +00:00
util_procid.c lib/messaging: Move messages_dgm out of source3 2020-05-06 00:06:40 +00:00
util_procid.h
util_sd.c lib: Fix out-of-bounds access in print_ace_flags() 2023-01-12 15:38:30 +00:00
util_sec.c s3:lib: Fix code spelling 2023-07-13 05:41:36 +00:00
util_sid_passdb.c
util_sid_passdb.h
util_sid.c lib: Add security_token_del_npa_flags() helper function 2023-05-16 10:53:40 +00:00
util_sock.c s3:lib: Fix code spelling 2023-07-13 05:41:36 +00:00
util_specialsids.c lib: Avoid an "includes.h" 2021-09-21 00:13:32 +00:00
util_specialsids.h lib: Give util_specialsids.c its own prototype header 2021-09-21 00:13:32 +00:00
util_str.c lib: Remove unused strnrchr_m 2024-07-04 15:26:36 +00:00
util_tdb.c s3:lib:util_tdb: use NUMERIC_CMP() in tdb_data_cmp() 2024-04-10 22:56:33 +00:00
util_transfer_file.c
util_tsock.c
util_tsock.h
util_unixsids.c
util_unixsids.h
util_wellknown.c lib: Use dom_sid_str_buf 2018-12-20 23:40:25 +01:00
util.c s3/lib: move set_namearray() to util_namearray.c 2024-07-26 10:06:30 +00:00
version_test.c
version.c VERSION: move COPYRIGHT_STARTUP_MESSAGE as SAMBA_COPYRIGHT_STRING into version.h 2023-12-15 10:44:42 +00:00
winbind_util.c s3/passdb: add winbind_lookup_name_ex() 2024-07-26 10:06:31 +00:00
winbind_util.h s3/passdb: add winbind_lookup_name_ex() 2024-07-26 10:06:31 +00:00
wins_srv.c s3: libsmb: Convert the WINS and broadcast name functions to return size_t * num addresses. 2020-09-15 10:09:36 +00:00
xattr_tdb.c lib: Convert push_file_id_16 to take uint8_t instead of char 2024-04-30 22:44:32 +00:00
xattr_tdb.h