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/8aacb4a6e01b
branches:  trunk
changeset: 1004041:8aacb4a6e01b
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 d5d03e2272db -r 8aacb4a6e01b 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
- Prev by Date:
[src/trunk]: src/lib/libpam/libpam no error for function cast
- Next by Date:
[src/trunk]: src/doc New acpica, ath-hal, bind, unbound, nsd, bozohttpd, expa...
- Previous by Thread:
[src/trunk]: src/lib/libpam/libpam no error for function cast
- Next by Thread:
[src/trunk]: src/doc New acpica, ath-hal, bind, unbound, nsd, bozohttpd, expa...
- Indexes:
Home |
Main Index |
Thread Index |
Old Index