Module Name: src
Committed By: christos
Date: Wed Oct 9 22:05:36 UTC 2019
Modified Files:
src/lib/libpam/modules/pam_lastlog: Makefile
Log Message:
don't warn for strncpy wtmp fields, they are not NUL terminated.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/lib/libpam/modules/pam_lastlog/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libpam/modules/pam_lastlog/Makefile
diff -u src/lib/libpam/modules/pam_lastlog/Makefile:1.8 src/lib/libpam/modules/pam_lastlog/Makefile:1.9
--- src/lib/libpam/modules/pam_lastlog/Makefile:1.8 Mon Oct 27 03:57:41 2008
+++ src/lib/libpam/modules/pam_lastlog/Makefile Wed Oct 9 18:05:35 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2008/10/27 07:57:41 mrg Exp $
+# $NetBSD: Makefile,v 1.9 2019/10/09 22:05:35 christos Exp $
# Copyright 2001 Mark R V Murray
# All rights reserved.
#
@@ -34,3 +34,7 @@ CPPFLAGS+=-DSUPPORT_UTMP -DSUPPORT_UTMPX
LIBDPLIBS+= util ${.CURDIR}/../../../libutil
.include "${.CURDIR}/../mod.mk"
+
+.if ${ACTIVE_CC} == "gcc"
+COPTS.pam_lastlog.c += -Wno-stringop-truncation
+.endif