Changeset 8819
- Timestamp:
- Sep 15, 2006, 3:07:38 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/types/psMetadataConfig.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/types/psMetadataConfig.c
r8804 r8819 10 10 * @author Eric Van Alst, MHPCC 11 11 * 12 * @version $Revision: 1.8 5$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-09-1 2 21:55:49$12 * @version $Revision: 1.86 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-09-16 01:07:38 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1157 1157 PS_ASSERT_PTR_NON_NULL(filename,NULL); 1158 1158 1159 struct stat buf;1160 1161 1159 // Attempt to open specified file 1162 1160 int fd = 0; … … 1164 1162 // XXX really should return strerror() here 1165 1163 psError(PS_ERR_IO, true, _("Failed to open file '%s'. Check if it exists and it has the proper permissions."), filename); 1164 return NULL; 1165 } 1166 1167 struct stat buf; // Results of stat() for file 1168 if (fstat(fd, &buf) != 0) { 1169 psError(PS_ERR_IO, true, _("Unable to stat file '%s'.\n"), filename); 1170 close(fd); 1166 1171 return NULL; 1167 1172 }
Note:
See TracChangeset
for help on using the changeset viewer.
