From owner-freebsd-hackers Fri Jan 10 18:05:29 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id SAA18593 for hackers-outgoing; Fri, 10 Jan 1997 18:05:29 -0800 (PST) Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id SAA18583 for ; Fri, 10 Jan 1997 18:05:24 -0800 (PST) Received: (from uucp@localhost) by frmug.org (8.8.2/8.8.2/frmug-1.3) with UUCP id DAA13002 for hackers@FreeBSD.org; Sat, 11 Jan 1997 03:05:18 +0100 (MET) Received: from localhost (localhost [127.0.0.1]) by xp11.frmug.org (8.8.4/8.7.3/xp11-uucp-1.1) with ESMTP id DAA29018 for ; Sat, 11 Jan 1997 03:02:10 +0100 (CET) Message-Id: <199701110202.DAA29018@xp11.frmug.org> To: hackers@FreeBSD.org Subject: number of lines in a file, given its size Date: Sat, 11 Jan 1997 03:02:10 +0100 From: "Philippe Charnier" Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Hello, In line 115 in /usr/src/lib/libc/gen/getusershell.c: shells = calloc((unsigned)statb.st_size / 3, sizeof (char *)); ^^^^^^^^^^^^^^^^^ Isn't this a suspicious approximation of the number of lines in /etc/shells (just put `/' in it for example of an invalid entry). ------ ------ Philippe Charnier charnier@lirmm.fr (smtp) charnier@xp11.frmug.org (uucp) ``a PC not running FreeBSD is like a venusian with no tentacles'' ------------------------------------------------------------------------