Module Name:    src
Committed By:   kamil
Date:           Mon Jun 25 18:05:25 UTC 2018

Modified Files:
        src/usr.bin/chpass: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/usr.bin/chpass/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/chpass/Makefile
diff -u src/usr.bin/chpass/Makefile:1.15 src/usr.bin/chpass/Makefile:1.16
--- src/usr.bin/chpass/Makefile:1.15	Mon May 28 12:06:25 2007
+++ src/usr.bin/chpass/Makefile	Mon Jun 25 18:05:25 2018
@@ -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}

Reply via email to