From owner-cvs-src@FreeBSD.ORG Tue Feb 22 02:54:36 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAF0B16A4CE; Tue, 22 Feb 2005 02:54:36 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8289743D39; Tue, 22 Feb 2005 02:54:36 +0000 (GMT) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j1M2saeQ092204; Tue, 22 Feb 2005 02:54:36 GMT (envelope-from delphij@repoman.freebsd.org) Received: (from delphij@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j1M2sadc092203; Tue, 22 Feb 2005 02:54:36 GMT (envelope-from delphij) Message-Id: <200502220254.j1M2sadc092203@repoman.freebsd.org> From: Xin LI Date: Tue, 22 Feb 2005 02:54:36 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Subject: cvs commit: src/usr.sbin/lpr/lpc lpc.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 02:54:36 -0000 delphij 2005-02-22 02:54:36 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) usr.sbin/lpr/lpc lpc.c Log: MFC revision 1.29 date: 2005/02/15 10:23:01; author: delphij; state: Exp; lines: +1 -1 Be more careful when doing el_parse() - only do it when el is properly initialized, that happens when lpc is called from a tty. Without this change, it's possible to get SIGSEGV simply doing: echo "..:" | lpc Reported by: Wojciech A. Koszek PR: 77462 (patch rewritten by myself) MFC After: 1 week Revision Changes Path 1.28.4.1 +1 -1 src/usr.sbin/lpr/lpc/lpc.c