From owner-cvs-all@FreeBSD.ORG Mon Nov 17 01:23:09 2003 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 F09E016A4CE; Mon, 17 Nov 2003 01:23:08 -0800 (PST) Received: from VARK.homeunix.com (adsl-68-123-40-77.dsl.pltn13.pacbell.net [68.123.40.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D6F843F93; Mon, 17 Nov 2003 01:23:08 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: from VARK.homeunix.com (localhost [127.0.0.1]) by VARK.homeunix.com (8.12.9/8.12.9) with ESMTP id hAH9LPen052178; Mon, 17 Nov 2003 01:21:25 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.homeunix.com (8.12.9/8.12.9/Submit) id hAH9LPqK052177; Mon, 17 Nov 2003 01:21:25 -0800 (PST) (envelope-from das@FreeBSD.ORG) Date: Mon, 17 Nov 2003 01:21:24 -0800 From: David Schultz To: Nate Lawson Message-ID: <20031117092124.GA52046@VARK.homeunix.com> Mail-Followup-To: Nate Lawson , cvs-all@FreeBSD.ORG, cvs-src@FreeBSD.ORG, src-committers@FreeBSD.ORG References: <20031117064021.6223416A4E3@hub.freebsd.org> <20031116230357.K59017@root.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031116230357.K59017@root.org> cc: cvs-src@FreeBSD.ORG cc: src-committers@FreeBSD.ORG cc: cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sbin/nologin Makefile nologin.c nologin.sh 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: Mon, 17 Nov 2003 09:23:09 -0000 On Sun, Nov 16, 2003, Nate Lawson wrote: > On Sun, 16 Nov 2003, David Schultz wrote: > > +#define MESSAGE "This account is currently not available.\n" > > + > > +int > > +main(int argc, char *argv[]) > > +{ > > + > > + write(STDOUT_FILENO, MESSAGE, sizeof(MESSAGE)); > > + _exit(1); > > +} > > Shouldn't that be strlen(MESSAGE) since sizeof includes the terminating > '\0'? > > I couldn't help pointing out a bug in a variant of Hello World. ;-) Shhh! In an attempt to save face, I'm calling it a feature.