From owner-freebsd-bugs Thu May 10 15: 0: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0271C37B423 for ; Thu, 10 May 2001 15:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4AM00d64929; Thu, 10 May 2001 15:00:00 -0700 (PDT) (envelope-from gnats) Received: from mail.noos.fr (zola.noos.net [212.198.2.76]) by hub.freebsd.org (Postfix) with ESMTP id 080D737B422 for ; Thu, 10 May 2001 14:54:22 -0700 (PDT) (envelope-from root@gits.dyndns.org) Received: (qmail 28154382 invoked by uid 0); 10 May 2001 21:54:19 -0000 Received: from d165.dhcp212-198-231.noos.fr (HELO gits.dyndns.org) ([212.198.231.165]) (envelope-sender ) by zola.noos.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 10 May 2001 21:54:19 -0000 Received: (from root@localhost) by gits.dyndns.org (8.11.3/8.11.3) id f4ALsHS60127; Thu, 10 May 2001 23:54:17 +0200 (CEST) (envelope-from root) Message-Id: <200105102154.f4ALsHS60127@gits.dyndns.org> Date: Thu, 10 May 2001 23:54:17 +0200 (CEST) From: Cyrille Lefevre Reply-To: clefevre@poboxes.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/27258: getty didn't check if if= isn't empty Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 27258 >Category: bin >Synopsis: getty didn't check if if= isn't empty >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu May 10 15:00:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Cyrille Lefevre >Release: FreeBSD 4.3-STABLE i386 >Organization: ACME >Environment: System: FreeBSD gits 4.3-STABLE FreeBSD 4.3-STABLE #21: Sun Apr 22 22:20:03 CEST 2001 root@gits:/disk2/4.x-stable/src/sys/compile/CUSTOM i386 >Description: all is in the subject. this is not so important, but be safe. >How-To-Repeat: :if=: in gettytab >Fix: Index: main.c =================================================================== RCS file: /home/ncvs/src/libexec/getty/main.c,v retrieving revision 1.28.2.2 diff -u -r1.28.2.2 main.c --- main.c 2001/03/05 11:17:08 1.28.2.2 +++ main.c 2001/03/11 06:02:46 @@ -324,7 +324,7 @@ /* if this is the first time through this, and an issue file has been given, then send it */ - if (first_time && IF) { + if (first_time && IF && *IF) { int fd; if ((fd = open(IF, O_RDONLY)) != -1) { >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message