From owner-cvs-gnu Mon Dec 11 05:56:13 1995 Return-Path: owner-cvs-gnu Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA06986 for cvs-gnu-outgoing; Mon, 11 Dec 1995 05:56:13 -0800 (PST) Received: (from peter@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA06977 Mon, 11 Dec 1995 05:56:11 -0800 (PST) Date: Mon, 11 Dec 1995 05:56:11 -0800 (PST) From: Peter Wemm Message-Id: <199512111356.FAA06977@freefall.freebsd.org> To: CVS-committers, cvs-gnu Subject: cvs commit: src/gnu/usr.sbin/yp_mkdb yp_mkdb.c Sender: owner-cvs-gnu@FreeBSD.ORG Precedence: bulk peter 95/12/11 05:56:09 Modified: gnu/usr.sbin/yp_mkdb yp_mkdb.c Log: Fix yp_mkdb to do what the code suggests it's trying to do.. The code, as written, appears to load the new database data into a new hash file and renames the two. Due to a run of bugs and lack of error checking, it's going a whole mess of unlink() and rename() calls that are failing. It only worked in the first place because the data was being inserted into a "live" hash file. (I wonder how much stale data has assumulated?) Submitted by: Laurence Lopez Revision Changes Path 1.6 +10 -6 src/gnu/usr.sbin/yp_mkdb/yp_mkdb.c