Changeset 25757 for trunk/Ohana/src/libdvo/src/skyregion_io.c
- Timestamp:
- Oct 2, 2009, 3:15:42 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libdvo/src/skyregion_io.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libdvo/src/skyregion_io.c
r17000 r25757 84 84 } 85 85 86 SkyTable *SkyTableLoadOptimal (char *catdir, char *skyfile, char *gscfile, int depth, int verbose) {86 SkyTable *SkyTableLoadOptimal (char *catdir, char *skyfile, char *gscfile, int readwrite, int depth, int verbose) { 87 87 88 88 char filename[256]; … … 93 93 sprintf (filename, "%s/SkyTable.fits", catdir); 94 94 if (stat (filename, &filestat)) goto SKYFILE; 95 if (!check_file_access (filename, FALSE, verbose)) goto SKYFILE;95 if (!check_file_access (filename, FALSE, readwrite, verbose)) goto SKYFILE; 96 96 sky = SkyTableLoad (filename, verbose); 97 97 if (sky == NULL) { … … 106 106 if (skyfile[0] != 0) goto GSCFILE; 107 107 if (stat (skyfile, &filestat)) goto GSCFILE; 108 if (!check_file_access (skyfile, FALSE, verbose)) goto GSCFILE;108 if (!check_file_access (skyfile, FALSE, readwrite, verbose)) goto GSCFILE; 109 109 sky = SkyTableLoad (skyfile, verbose); 110 110 if (sky == NULL) { … … 117 117 /* create CATDIR copy */ 118 118 sprintf (filename, "%s/SkyTable.fits", catdir); 119 check_file_access (filename, FALSE, verbose);119 check_file_access (filename, FALSE, readwrite, verbose); 120 120 if (!SkyTableSave (sky, filename)) return NULL; 121 121 … … 134 134 /* create CATDIR copy */ 135 135 sprintf (filename, "%s/SkyTable.fits", catdir); 136 check_file_access (filename, FALSE, verbose);136 check_file_access (filename, FALSE, readwrite, verbose); 137 137 if (!SkyTableSave (sky, filename)) return NULL; 138 138
Note:
See TracChangeset
for help on using the changeset viewer.
