]> arthur.barton.de Git - netatalk.git/commitdiff
Don't try to recover a DB environment that doesn't exist.
authorjmarcus <jmarcus>
Mon, 11 Feb 2002 21:02:00 +0000 (21:02 +0000)
committerjmarcus <jmarcus>
Mon, 11 Feb 2002 21:02:00 +0000 (21:02 +0000)
Prompted by: Daniel E. Lautenschleger <dan@bocklabs.wisc.edu>

bin/cnid/cnid_maint.in

index 584664251ba6ca4265033c6da5e3df9fa6a7a6c6..1e4f0d1e1b2cfc20bdef22c00706730ea87b2312 100755 (executable)
@@ -3,7 +3,7 @@
 #
 # cnid_maint: A script to maintain the consistency of CNID databases.
 #
-# $Id: cnid_maint.in,v 1.5 2002-02-09 20:29:40 jmarcus Exp $
+# $Id: cnid_maint.in,v 1.6 2002-02-11 21:02:00 jmarcus Exp $
 #
 
 use strict;
@@ -166,6 +166,10 @@ close(VOLS);
 my $path = "";
 foreach $path (@paths) {
     my $dbpath = $path . "/.AppleDB";
+    if ( !-d $dbpath ) {
+        error( 1, "Database environment $dbpath does not exist" );
+        next;
+    }
     if ($extra_safe) {
         error( 0,
             "Checking database environment $dbpath for open connections..." );