From henry@techiebod.com Wed Apr 28 09:40:20 1999
Return-Path: <henry@techiebod.com>
Received: from techiebod.com (techiebod.com [194.207.163.101])
	by hub.freebsd.org (Postfix) with ESMTP id 7B9CA14C04
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 28 Apr 1999 09:39:27 -0700 (PDT)
	(envelope-from henry@techiebod.com)
Received: (from root@localhost)
	by techiebod.com (8.9.2/8.9.1) id RAA15287;
	Wed, 28 Apr 1999 17:43:56 +0100 (BST)
	(envelope-from henry)
Message-Id: <199904281643.RAA15287@techiebod.com>
Date: Wed, 28 Apr 1999 17:43:56 +0100 (BST)
From: henry@techiebod.com
Reply-To: henry@techiebod.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: Simple more bug
X-Send-Pr-Version: 3.2

>Number:         11370
>Category:       bin
>Synopsis:       more segfaults if you give it a real filename and a '#' in that order in the command line
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 28 09:50:01 PDT 1999
>Closed-Date:    Mon May 8 21:30:26 PDT 2000
>Last-Modified:  Mon May 08 21:30:53 PDT 2000
>Originator:     Henry Whincup
>Release:        FreeBSD 3.1-STABLE i386
>Organization:
>Environment:
>Description:
	type:
		more <real-filename> #
	You may have to escape the '#' in some shells.
	This will display the file <filename> but segfault when it trys to read #

>How-To-Repeat:
	See description
>Fix:
	Line 103 of src/usr.bin/more/main.c
	change to:
	if (previous_file == '\0' || *previous_file == '\0') {

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: steve 
Responsible-Changed-When: Sat May 1 12:22:25 PDT 1999 
Responsible-Changed-Why:  
Misfiled PR. 
State-Changed-From-To: open->closed 
State-Changed-By: hoek 
State-Changed-When: Mon May 8 21:30:26 PDT 2000 
State-Changed-Why:  
Fixed as suggested, thanks! 
>Unformatted:
