Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/chpass Specify SANITIZER_RENAME_SYMBOL in chpass



details:   https://anonhg.NetBSD.org/src/rev/c3d861b94dd2
branches:  trunk
changeset: 324266:c3d861b94dd2
user:      kamil <kamil%NetBSD.org@localhost>
date:      Mon Jun 25 18:05:25 2018 +0000

description:
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.

diffstat:

 usr.bin/chpass/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 621a7e2a9451 -r c3d861b94dd2 usr.bin/chpass/Makefile
--- a/usr.bin/chpass/Makefile   Mon Jun 25 18:03:56 2018 +0000
+++ b/usr.bin/chpass/Makefile   Mon Jun 25 18:05:25 2018 +0000
@@ -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 @@
 .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}



Home | Main Index | Thread Index | Old Index