1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source3
Volker Lendecke 5246267d17 smbd: Simplify fsp_fullbasepath()
snprintf deals well with NULL/0 buffers. Basically this undoes
6555fa9d8f and 193df617. 6555fa9d8f gave cppcheck as a reason for
this patch, but if I look into susv4's snprintf definition I find:

If n is zero, nothing shall be written and s may be a null pointer.

This removes the checks and makes sure we fulfill the requirement of
susv4 that states that buf can only be NULL if buflen is 0.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2024-03-12 13:31:31 +00:00
..
auth s3:auth: Allow 'Unix Users' and 'Unix Groups' to create a local token 2023-12-01 08:06:44 +00:00
build
client s3/libsmb: reuse smbXcli_conn_have_posix() 2023-10-26 15:29:29 +00:00
exports
groupdb s3:groupdb: Add missing newline to logging message 2023-08-08 04:39:38 +00:00
include s3:ctdbd_conn: add ctdbd_all_ip_foreach() helper 2024-01-26 17:00:32 +00:00
intl
lib s3:ctdbd_conn: add ctdbd_all_ip_foreach() helper 2024-01-26 17:00:32 +00:00
libads s3:libads: Trace ldap search base/filter/scope 2024-02-29 01:31:31 +00:00
libgpo/gpext
libnet s3:libnet: Remove always‐false comparison (CID 241309) 2023-10-13 02:18:31 +00:00
librpc smbd: Remove unused declarations in smbXsrv.idl 2024-03-12 13:31:31 +00:00
libsmb libsmb: Fix whitespace and a typo 2024-01-23 23:28:31 +00:00
locale s3:utils: Fix code spelling 2023-08-08 04:39:38 +00:00
locking libcli/security: Rename dup_nt_token() -> security_token_duplicate() 2023-09-26 23:45:36 +00:00
modules vfs_ceph: Use ceph_fdopendir() when available for SMB_VFS_FDOPENDIR 2024-01-27 00:01:12 +00:00
nmbd VERSION: move COPYRIGHT_STARTUP_MESSAGE as SAMBA_COPYRIGHT_STRING into version.h 2023-12-15 10:44:42 +00:00
param s3:param: Remove unnecessary use of discard_const_p() 2023-12-21 20:21:34 +00:00
passdb s3:passdb: Reformat long line 2024-02-16 02:41:36 +00:00
printing smbd: set fsp_flags.is_fsa to true on printer file handles 2024-01-08 15:53:36 +00:00
profile profile: Fix rusage reporting 2023-12-19 16:05:36 +00:00
registry libcli/security: Rename dup_nt_token() -> security_token_duplicate() 2023-09-26 23:45:36 +00:00
rpc_client s3/rpc_client: Fix array offset check 2024-02-17 17:58:43 +00:00
rpc_server s3:rpc_server/witness: add handling of MSG_RPCD_WITNESS_REGISTRATION_UPDATE messages 2024-01-26 17:00:33 +00:00
rpcclient s3:rpcclient: Use dcerpc_lsa_open_policy_fallback() in cmd_lsarpc.c 2023-11-21 11:16:37 +00:00
script selftest: test listing trusted domains that includes an NT4 domain 2024-01-20 13:20:37 +00:00
selftest selftest: test listing trusted domains that includes an NT4 domain 2024-01-20 13:20:37 +00:00
services s3:services: Disable rcinit-based service control code 2021-12-10 14:02:30 +00:00
smbd smbd: Simplify fsp_fullbasepath() 2024-03-12 13:31:31 +00:00
torture smbd: Give source3/smbd/dir.c its own header file 2023-12-19 16:05:36 +00:00
utils s3:utils: fix help string for 'net witness force-response' 2024-02-13 20:02:31 +00:00
web
winbindd s3: winbindd: assign rangenum member after NULL check 2024-02-22 10:57:38 +00:00
.clang_complete
.dmallocrc
.indent.pro
Doxyfile
mainpage.dox
smbadduser.in
wscript build: Move --with-ldap/--without-ldap from source3 build to top level 2024-03-01 02:41:36 +00:00
wscript_build VERSION: move COPYRIGHT_STARTUP_MESSAGE as SAMBA_COPYRIGHT_STRING into version.h 2023-12-15 10:44:42 +00:00
wscript_configure_system_ncurses