1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-06 13:18:07 +03:00
samba-mirror/lib
Michael Tokarev 5a560ba489 include <grp.h> for setgroups in a few places
setgroups(), unlike getgroups(), is not in <unistd.h> but in <grp.h>.
Recent compilers require function declaration before using a function
(or more and more distributions treat lack of declaration as error),
so all configure-time tests fails with source3/lib/util_sec.c:

source3/../lib/util/setid.c: In function 'samba_setgroups':
source3/../lib/util/setid.c:244:16: error: implicit declaration of function \
  'setgroups'; did you mean 'getgroups'? [-Wimplicit-function-declaration]
  244 |         return setgroups(setlen, gidset);

Add the missing include so configuration finds the existing system
functions instead of failing.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>

Autobuild-User(master): Pavel Filipensky <pfilipensky@samba.org>
Autobuild-Date(master): Thu Jan  2 17:58:50 UTC 2025 on atb-devel-224
2025-01-02 17:58:50 +00:00
..
addns lib/addns: match additional names in a non case insensitive way 2024-09-29 08:09:46 +00:00
afs lib/afs: s/the the\b/the/ in comments 2024-11-06 10:57:34 +00:00
async_req lib: Remove an obsolete comment 2024-04-17 09:01:34 +00:00
audit_logging lib:audit_logging: Initialize ‘tm’ structure 2023-09-27 02:43:28 +00:00
cmdline replace direct calls to memset_s() with commonly used macros 2025-01-02 17:01:30 +00:00
compression lib:compression: Update my name 2024-02-16 02:41:36 +00:00
crypto replace direct calls to memset_s() with commonly used macros 2025-01-02 17:01:30 +00:00
dbwrap lib: Fix dbwrap_tdb.h prerequisites 2024-03-28 08:05:35 +00:00
fuzzing fuzzing: fix fuzz_stable_sort_r_unstable comparison 2024-05-31 05:29:08 +00:00
krb5_wrap lib: Align integer types 2024-09-10 21:54:36 +00:00
ldb ldb: fix Coverity 1636883 2024-12-30 04:17:46 +00:00
ldb-samba lib:ldb-samba: use 'ldb' debug class more widely 2024-12-19 23:00:32 +00:00
messaging lib:messaging: Fix code spelling 2023-04-11 09:06:36 +00:00
mscat lib:mscat: Remove unnecessary casts 2023-09-14 21:35:28 +00:00
param specify some deps on private libs actually used directly 2025-01-02 17:01:30 +00:00
printer_driver lib: Avoid duplicate definition of ADD_TO_ARRAY 2024-10-02 13:12:30 +00:00
pthreadpool lib:pthreadpool: Fix code spelling 2023-04-11 09:06:36 +00:00
replace remove usage of bzero 2025-01-02 17:01:30 +00:00
smbconf lib: Simplify smbconf_txt_load_file() 2024-12-02 04:53:33 +00:00
socket lib/socket: rearrange iface_comp() to use NUMERIC_CMP 2024-04-23 01:33:29 +00:00
talloc replace direct calls to memset_s() with commonly used macros 2025-01-02 17:01:30 +00:00
tdb tdb: Add LGPLv3 LICENSE file 2024-12-12 13:59:29 +00:00
tdb_wrap lib: Open tdb files with O_CLOEXEC 2021-06-04 16:47:34 +00:00
tdr util/charset: Rename utf16_len_n() to utf16_null_terminated_len_n() 2023-11-15 22:07:36 +00:00
tevent tevent: Add LGPLv3 LICENSE file 2024-12-12 13:59:29 +00:00
texpect texpect: don't ignore unknown options 2021-09-10 15:10:30 +00:00
torture lib/torture: add torture_assert_nttime_equal_goto() 2024-08-29 18:25:28 +00:00
tsocket tsocket: Use iov_buflen 2024-08-06 16:29:33 +00:00
util include <grp.h> for setgroups in a few places 2025-01-02 17:58:50 +00:00
README various: Remove references to about to be deleted thirdparty/dnspython 2018-12-11 20:07:18 +01:00
wscript_build

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