Index: trunk/Nebulous/lib/Nebulous/Client.pm
===================================================================
--- trunk/Nebulous/lib/Nebulous/Client.pm	(revision 4633)
+++ trunk/Nebulous/lib/Nebulous/Client.pm	(revision 4638)
@@ -1,5 +1,5 @@
 # Copyright (c) 2004  Joshua Hoblitt
 #
-# $Id: Client.pm,v 1.17 2005-07-28 01:40:26 jhoblitt Exp $
+# $Id: Client.pm,v 1.18 2005-07-28 03:48:41 jhoblitt Exp $
 
 package Nebulous::Client;
@@ -161,5 +161,5 @@
     }
 
-    my $fh  = $self->open( $key, 'write' );
+    my $fh  = $self->open( $key, 'read' );
     unless ( $fh ) {
         $log->debug( "can't open $key" );
@@ -435,4 +435,12 @@
 
     if ( $type eq 'write' ) {
+        my $num_instances = scalar @$locations;
+
+        if ( $num_instances > 1 ) {
+            $log->warn( "write not allowed with multiple instances" );
+            $log->debug( "leaving" );
+            return undef;
+        }
+
         eval {
             $fh = _get_filehandle( $path, '+<' );
