Subject: bin/1462: vi uninformative if /tmp not writable
To: None <gnats-bugs@NetBSD.ORG>
From: None <>
List: netbsd-bugs
Date: 09/14/1995 16:18:05
>Number:         1462
>Category:       bin
>Synopsis:       "vi foo.c" yields uninformative "log db: Permission denied."
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 14 16:35:01 1995
>Originator:     David Eckhardt
Carnegie Mellon University Computer Science
>Release:        NetBSD-0812
	NetBSD 1.0A 8/12 snapshot for X86 machines
	System: NetBSD 1.0A NetBSD 1.0A (IJET) #152: Sat Jul 15 14:38:58 EDT 1995 kosak@river:/usr/src/sys/arch/i386/compile/IJET i386

	vi gives an uninformative message if /tmp is not writable and you specify
	a filename (if you say just "vi", you get a fine error message!).
	chown root.wheel /tmp
	chmod 755 /tmp
	"vi foo.c" -> "log db: Permission denied."
	"vi" -> "Error: Temporary file: Permission denied."
	Ideally vi would spit out the filename it was having trouble
	creating, such as "create /tmp/ExNNNNNN: Permission denied.",
	which would quickly make the problem apparent.

	Also ideally, the installation procedure would make sure that
	/tmp had a more reasonable mode...or did I make some simple