From owner-cvs-all@FreeBSD.ORG Sun Feb 22 02:03:25 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6693D16A4CE; Sun, 22 Feb 2004 02:03:25 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4997F43D1D; Sun, 22 Feb 2004 02:03:25 -0800 (PST) (envelope-from cperciva@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i1MA3PGe024792; Sun, 22 Feb 2004 02:03:25 -0800 (PST) (envelope-from cperciva@repoman.freebsd.org) Received: (from cperciva@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i1MA3PW0024791; Sun, 22 Feb 2004 02:03:25 -0800 (PST) (envelope-from cperciva) Message-Id: <200402221003.i1MA3PW0024791@repoman.freebsd.org> From: Colin Percival Date: Sun, 22 Feb 2004 02:03:25 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/nologin Makefile nologin.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Feb 2004 10:03:25 -0000 cperciva 2004/02/22 02:03:25 PST FreeBSD src repository Modified files: sbin/nologin Makefile nologin.c Log: Report login attempts to syslog. Due to the statically-linked nature of nologin(8), this causes a considerable (100K) increase in the binary size, so I've added a NO_LOGIN_LOG option which disables this. While I'm here, s/sizeof(MESSAGE)/sizeof(MESSAGE) - 1/, in order to avoid writing the string-terminating zero byte. No complaints from: -current Approved by: rwatson (mentor) Revision Changes Path 1.10 +7 -0 src/sbin/nologin/Makefile 1.2 +14 -1 src/sbin/nologin/nologin.c