Source-Changes-HG archive

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

[src/trunk]: src/lib/libpam/modules/pam_lastlog don't warn for strncpy wtmp f...



details:   https://anonhg.NetBSD.org/src/rev/4842b46cb375
branches:  trunk
changeset: 464517:4842b46cb375
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Oct 09 22:05:35 2019 +0000

description:
don't warn for strncpy wtmp fields, they are not NUL terminated.

diffstat:

 lib/libpam/modules/pam_lastlog/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 79e204c0e35b -r 4842b46cb375 lib/libpam/modules/pam_lastlog/Makefile
--- a/lib/libpam/modules/pam_lastlog/Makefile   Wed Oct 09 22:05:09 2019 +0000
+++ b/lib/libpam/modules/pam_lastlog/Makefile   Wed Oct 09 22:05:35 2019 +0000
@@ -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 @@
 LIBDPLIBS+=    util    ${.CURDIR}/../../../libutil
 
 .include "${.CURDIR}/../mod.mk"
+
+.if ${ACTIVE_CC} == "gcc"
+COPTS.pam_lastlog.c += -Wno-stringop-truncation
+.endif



Home | Main Index | Thread Index | Old Index