Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 May 2001 23:54:17 +0200 (CEST)
From:      Cyrille Lefevre <clefevre@poboxes.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/27258: getty didn't check if if= isn't empty
Message-ID:  <200105102154.f4ALsHS60127@gits.dyndns.org>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105102154.f4ALsHS60127>