Specify SANITIZER_RENAME_SYMBOL in chpass

Rename local versions of getpwent getpwnam getpwnam_r getpwuid getpwuid_r
(all of the symbols are namespaced) in order to remove symbol clash with
libc.

This program uses code directly from libc.
This commit is contained in:
kamil 2018-06-25 18:05:25 +00:00
parent ee01cd1e81
commit 2ca8c8d72f
1 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.15 2007/05/28 12:06:25 tls Exp $
# $NetBSD: Makefile,v 1.16 2018/06/25 18:05:25 kamil Exp $
# @(#)Makefile 8.2 (Berkeley) 4/2/94
.include <bsd.own.mk>
@ -22,6 +22,11 @@ LDADD+= -lrpcsvc
.else
SRCS+= getpwent.c
CPPFLAGS.getpwent.c=-UYP
SANITIZER_RENAME_SYMBOL+= __getpwent50
SANITIZER_RENAME_SYMBOL+= __getpwnam50
SANITIZER_RENAME_SYMBOL+= __getpwnam_r50
SANITIZER_RENAME_SYMBOL+= __getpwuid50
SANITIZER_RENAME_SYMBOL+= __getpwuid_r50
.endif
DPADD+= ${LIBUTIL}