Subject: bin/1013: Problem with /usr/bin/mail in NetBSD-1.0
To: None <gnats-admin@sun-lamp.cs.berkeley.edu>
From: Tobias Weingartner <weingart@natasha.brandonu.ca>
List: netbsd-bugs
Date: 05/02/1995 10:50:04
>Number:         1013
>Category:       bin
>Synopsis:       Problem with /usr/bin/mail in NetBSD-1.0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May  2 10:50:03 1995
>Originator:     Tobias Weingartner
>Organization:
Bit Cave Inc.
>Release:        1.0
>Environment:
	
System: NetBSD natasha.brandonu.ca 1.0 NetBSD 1.0 (NATASHA) #0: Thu Dec 8 18:51:56 CST 1994 weingart@natasha.brandonu.ca:/usr/src/sys/arch/i386/compile/NATASHA i386


>Description:
	
/usr/bin/mail dumps core when I set TMPDIR to my own directory.

>How-To-Repeat:
	
mkdir ~/tmp
setenv TMPDIR ~/tmp
/usr/bin/Mail

>Fix:
	
Sorry, looks like the code that uses 'mktemp' will need to be changed.
However, just glancing at the code makes me shudder...  ;-)

Workaround: unsetenv TMPDIR

>Audit-Trail:
>Unformatted: