264 |
|
|
265 |
ASSERT(rcfile); |
ASSERT(rcfile); |
266 |
|
|
267 |
return check_file(rcfile, "control file", S_IRUSR | S_IWUSR | S_IXUSR); |
return check_file_stat(rcfile, "control file", S_IRUSR | S_IWUSR | S_IXUSR); |
268 |
|
|
269 |
} |
} |
270 |
|
|
311 |
* @param permmask The permission mask for the file |
* @param permmask The permission mask for the file |
312 |
* @return TRUE if the test passed otherwise FALSE |
* @return TRUE if the test passed otherwise FALSE |
313 |
*/ |
*/ |
314 |
int check_file(char *filename, char *description, int permmask) { |
int check_file_stat(char *filename, char *description, int permmask) { |
315 |
|
|
316 |
struct stat buf; |
struct stat buf; |
317 |
errno= 0; |
errno= 0; |