From jtm63@shell-3.enteract.com  Fri Sep  8 14:12:54 2000
Return-Path: <jtm63@shell-3.enteract.com>
Received: from mail.enteract.com (mail.enteract.com [207.229.143.33])
	by hub.freebsd.org (Postfix) with ESMTP id 173AF37B42C
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  8 Sep 2000 14:12:54 -0700 (PDT)
Received: from shell-3.enteract.com (jtm63@shell-3.enteract.com [207.229.143.42])
	by mail.enteract.com (8.9.3/8.9.3) with ESMTP id QAA27420
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 8 Sep 2000 16:12:37 -0500 (CDT)
	(envelope-from jtm63@shell-3.enteract.com)
Received: (from jtm63@localhost)
	by shell-3.enteract.com (8.9.3/8.9.3) id QAA24914;
	Fri, 8 Sep 2000 16:12:36 -0500 (CDT)
	(envelope-from jtm63)
Message-Id: <200009082112.QAA24914@shell-3.enteract.com>
Date: Fri, 8 Sep 2000 16:12:36 -0500 (CDT)
From: jtm63@enteract.com
Sender: jtm63@shell-3.enteract.com
Reply-To: jtm63@enteract.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: sail driver dies<Synopsis of the problem (one line)>
X-Send-Pr-Version: 3.2

>Number:         21133
>Category:       bin
>Synopsis:       sail driver dies
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 08 14:20:01 PDT 2000
>Closed-Date:    Fri Jun 22 22:53:10 PDT 2001
>Last-Modified:  Sat Sep 15 11:20:00 PDT 2001
>Originator:     James_McNaughton
>Release:        FreeBSD 3.5-STABLE i386
>Organization:
>Environment:

	

>Description:

	The following error occurs while playing sail
	right at atartup.

	It looks like you've had it!
The driver died.

>How-To-Repeat:

	

>Fix:
	
	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: peter 
Responsible-Changed-When: Mon Sep 25 12:21:35 PDT 2000 
Responsible-Changed-Why:  
Orphaned PR 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21133 
State-Changed-From-To: open->closed 
State-Changed-By: mikeh 
State-Changed-When: Fri Jun 22 22:53:10 PDT 2001 
State-Changed-Why:  
I can't reproduce this. If there is still a problem, a lot more 
details are going to be needed. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=21133 

From: SHIRAMOTO Takeyuki <siramoto@mx9.freecom.ne.jp>
To: freebsd-gnats-submit@FreeBSD.org, jtm63@enteract.com
Cc:  
Subject: Re: bin/21133: sail driver dies
Date: Sun, 16 Sep 2001 03:11:43 +0900

 diff -crN /usr/src/games/sail/pl_main.c ./pl_main.c
 *** /usr/src/games/sail/pl_main.c	Tue Nov 30 12:49:38 1999
 --- ./pl_main.c	Sun Sep 16 01:08:21 2001
 ***************
 *** 49,58 ****
   pl_main()
   {
   
 - 	if (!SCREENTEST()) {
 - 		printf("Can't sail on this terminal.\n");
 - 		exit(1);
 - 	}
   	initialize();
   	Signal("Aye aye, Sir", (struct ship *)0);
   	play();
 --- 49,54 ----
 ***************
 *** 200,208 ****
 --- 196,208 ----
   	if ((nameptr = (char *) getenv("SAILNAME")) && *nameptr)
   		(void) strncpy(captain, nameptr, sizeof captain);
   	else {
 + 		char *p;
 + 
   		(void) printf("Your name, Captain? ");
   		(void) fflush(stdout);
   		(void) fgets(captain, sizeof captain, stdin);
 + 		p = captain;
 + 		strsep(&p, "\n\r");
   		if (!*captain)
   			(void) strcpy(captain, "no name");
   		else
 ***************
 *** 241,246 ****
 --- 241,250 ----
   		}
   	}
   
 + 	if (!SCREENTEST()) {
 + 		printf("Can't sail on this terminal.\n");
 + 		exit(1);
 + 	}
   	initscreen();
   	draw_board();
   	(void) sprintf(message, "Captain %s assuming command", captain);
 
>Unformatted:
 
