Index: /branches/eam_branches/ipp-20111122/Ohana/src/photdbc/src/FixSkyForHost.c
===================================================================
--- /branches/eam_branches/ipp-20111122/Ohana/src/photdbc/src/FixSkyForHost.c	(revision 33406)
+++ /branches/eam_branches/ipp-20111122/Ohana/src/photdbc/src/FixSkyForHost.c	(revision 33407)
@@ -1,4 +1,4 @@
 # include "dvodist.h"
-# define DEBUG 1
+# define DEBUG 0
 
 // examine all of the filenames in the catdir directories and update the host table to note the correct locations
@@ -9,4 +9,6 @@
   for (i = 0; i < skylist->Nregions; i++) {
     
+    if (i && (i % 1000 == 0)) fprintf (stderr, ".");
+
     struct stat filestat;
 
@@ -15,5 +17,5 @@
     snprintf (rawfile, 1024, "%s/%s.cpt", catdir, skylist[0].regions[i]->name);
     
-    int status = stat (rawfile, &filestat);
+    int status = lstat (rawfile, &filestat);
     if (status == -1) {
       if (errno == ENOENT) continue;
Index: /branches/eam_branches/ipp-20111122/Ohana/src/photdbc/src/dvodist.c
===================================================================
--- /branches/eam_branches/ipp-20111122/Ohana/src/photdbc/src/dvodist.c	(revision 33406)
+++ /branches/eam_branches/ipp-20111122/Ohana/src/photdbc/src/dvodist.c	(revision 33407)
@@ -27,11 +27,13 @@
   }
 
-  CheckHostsAndPaths(hosts);
+  if (MODE != MODE_FIX) {
+    CheckHostsAndPaths(hosts);
+  }
 
-  // save once so repeated calls copy data to the same location
-  { 
-    char *skyfile = SkyTableFilename (catdir);
-    SkyTableSave (sky, skyfile);
-  }
+  // XXX bad // save once so repeated calls copy data to the same location
+  // XXX bad { 
+  // XXX bad   char *skyfile = SkyTableFilename (catdir);
+  // XXX bad   SkyTableSave (sky, skyfile);
+  // XXX bad }
 
   switch (MODE) {
