Changeset 33407
- Timestamp:
- Mar 4, 2012, 8:34:42 PM (14 years ago)
- Location:
- branches/eam_branches/ipp-20111122/Ohana/src/photdbc/src
- Files:
-
- 2 edited
-
FixSkyForHost.c (modified) (3 diffs)
-
dvodist.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20111122/Ohana/src/photdbc/src/FixSkyForHost.c
r33404 r33407 1 1 # include "dvodist.h" 2 # define DEBUG 12 # define DEBUG 0 3 3 4 4 // examine all of the filenames in the catdir directories and update the host table to note the correct locations … … 9 9 for (i = 0; i < skylist->Nregions; i++) { 10 10 11 if (i && (i % 1000 == 0)) fprintf (stderr, "."); 12 11 13 struct stat filestat; 12 14 … … 15 17 snprintf (rawfile, 1024, "%s/%s.cpt", catdir, skylist[0].regions[i]->name); 16 18 17 int status = stat (rawfile, &filestat);19 int status = lstat (rawfile, &filestat); 18 20 if (status == -1) { 19 21 if (errno == ENOENT) continue; -
branches/eam_branches/ipp-20111122/Ohana/src/photdbc/src/dvodist.c
r33404 r33407 27 27 } 28 28 29 CheckHostsAndPaths(hosts); 29 if (MODE != MODE_FIX) { 30 CheckHostsAndPaths(hosts); 31 } 30 32 31 // save once so repeated calls copy data to the same location32 {33 char *skyfile = SkyTableFilename (catdir);34 SkyTableSave (sky, skyfile);35 }33 // XXX bad // save once so repeated calls copy data to the same location 34 // XXX bad { 35 // XXX bad char *skyfile = SkyTableFilename (catdir); 36 // XXX bad SkyTableSave (sky, skyfile); 37 // XXX bad } 36 38 37 39 switch (MODE) {
Note:
See TracChangeset
for help on using the changeset viewer.
