Index: trunk/DataStore/scripts/dsget
===================================================================
--- trunk/DataStore/scripts/dsget	(revision 17661)
+++ trunk/DataStore/scripts/dsget	(revision 17718)
@@ -3,5 +3,5 @@
 # Copyright (C) 2006-2008  Joshua Hoblitt
 #
-# $Id: dsget,v 1.26 2008-05-14 01:47:33 bills Exp $
+# $Id: dsget,v 1.27 2008-05-16 20:36:03 jhoblitt Exp $
 
 use strict;
@@ -172,6 +172,10 @@
 
     close($src_fh) or die "can't close file $tmpfilename: $!";
-    close($fh) or die "can't close nebulous filehandle";
+    $fh->flush or die "can't flush nebulous filehandle: $!";
+    $fh->sync or die "can't sync nebulous filehandle: $!";
+    close($fh) or die "can't close nebulous filehandle: $!";
 } else {
+    $tmp->flush or die "can't flush filehandle: $!";
+    $tmp->sync or die "can't sync filehandle: $!";
     rename $tmpfilename, $filename
         or die "renaming $tmpfilename to $filename failed: $!";
