OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_1-150-g419f0cd
Gerrit Code Review
gerrit@openafs.org
Fri, 13 May 2022 01:50:41 -0400
The following commit has been merged in the master branch:
commit 419f0cd7aa75719dcf4df97e603ad4f0d936ddd9
Author: Marcio Barbosa <mbarbosa@sinenomine.net>
Date: Wed Apr 6 20:59:56 2022 +0000
afs: Replace strcpy &co by safer alternatives
In addition to being unsafe, these functions (strcpy, strncpy, strcat,
and sprintf) are deprecated on macOS. Replace these functions by safer
alternatives (strlcpy, strlcat, snprintf, and afs_strdup).
Notice that, in order to use afs_strdup(), this commit adds the afs_util
library to the AFSPAGOBJS list. Given that afs_strcasecmp() is also
implemented in afs_util.c, src/crypto/hcrypto/kernel/strcasecmp.c can be
removed from the tree.
No functional change should be incurred by this commit.
This commit is a continuation of a patch initially developed by
cwills@sinenomine.net.
Change-Id: Id11d8bca133e44f96913f7959d87bc82dbebce29
Reviewed-on: https://gerrit.openafs.org/14743
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/afs/DARWIN/osi_inode.c | 6 ++-
src/afs/DARWIN/osi_vfsops.c | 10 +++-
src/afs/UKERNEL/afsincludes.h | 1 +
src/afs/VNOPS/afs_vnop_lookup.c | 91 ++++++++++++++++++++++++----------
src/afs/VNOPS/afs_vnop_symlink.c | 2 +-
src/afs/afs_callback.c | 4 +-
src/afs/afs_cell.c | 2 +-
src/afs/afs_daemons.c | 17 +++++--
src/afs/afs_dynroot.c | 44 ++++++++--------
src/afs/afs_icl.c | 12 +++--
src/afs/afs_init.c | 2 +-
src/afs/afs_mariner.c | 34 ++++++++-----
src/afs/afs_pag_call.c | 2 +-
src/afs/afs_pag_cred.c | 7 +--
src/afs/afs_pioctl.c | 16 ++++--
src/afs/afs_volume.c | 7 +--
src/crypto/hcrypto/kernel/libafsdep | 1 -
src/crypto/hcrypto/kernel/strcasecmp.c | 32 ------------
src/dir/dir.c | 21 ++++++--
src/dir/test/Makefile.in | 2 +-
src/libafs/Makefile.common.in | 4 +-
src/rx/rx_kcommon.c | 2 +-
src/rx/rx_packet.c | 2 +-
23 files changed, 188 insertions(+), 133 deletions(-)
--
OpenAFS Master Repository