IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 4, 2012, 8:34:42 PM (14 years ago)
Author:
eugene
Message:

use lstat to find links; do not save skyfile on first pass (flips bytes)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/Ohana/src/photdbc/src/FixSkyForHost.c

    r33404 r33407  
    11# include "dvodist.h"
    2 # define DEBUG 1
     2# define DEBUG 0
    33
    44// examine all of the filenames in the catdir directories and update the host table to note the correct locations
     
    99  for (i = 0; i < skylist->Nregions; i++) {
    1010   
     11    if (i && (i % 1000 == 0)) fprintf (stderr, ".");
     12
    1113    struct stat filestat;
    1214
     
    1517    snprintf (rawfile, 1024, "%s/%s.cpt", catdir, skylist[0].regions[i]->name);
    1618   
    17     int status = stat (rawfile, &filestat);
     19    int status = lstat (rawfile, &filestat);
    1820    if (status == -1) {
    1921      if (errno == ENOENT) continue;
Note: See TracChangeset for help on using the changeset viewer.