Subject: bin/1328: pwdb_mkdb doesn't do any error checking for things like disk space!
To: None <netbsd-gnats@gnu.ai.mit.edu>
From: Daniel Hagerty <hag@gnu.ai.mit.edu>
List: netbsd-bugs
Date: 08/10/1995 18:41:29
>Number:         1328
>Category:       bin
>Synopsis:       pwdb_mkdb doesn't do any error checking for things like disk space!
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 10 19:05:02 1995
>Last-Modified:
>Originator:     Daniel Hagerty
>Organization:
Free Software Foundation
>Release:        gnats-3.2
>Environment:
    	
System: NetBSD duality.gnu.ai.mit.edu 1.0A NetBSD 1.0A (DUALITY) #1: Sat Aug 5 22:08:26 EDT 1995 mycroft@duality.gnu.ai.mit.edu:/build/src/sys/arch/hp300/compile/DUALITY hp300


>Description:
	pwd_mkdb doesn't check for successful writes. Running pwd_mkdb
on a full file system results in trashed *.db and master.passwd
files. This is a severe bug.
>How-To-Repeat:
	Pretty damn trivial. Fill up your disk, build a new passwd
file. Poof! You're screwed.
>Fix:
	After a quick look at the code, it seems that there is error
checking being done for db put operations. Could the problem be in
libdb? 
>Audit-Trail:
>Unformatted: