/[monit]/monit/files.c
ViewVC logotype

Diff of /monit/files.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.35 by rory, Sun Jun 29 04:23:10 2003 UTC revision 1.36 by chopp, Thu Jul 3 11:43:32 2003 UTC
# Line 264  int check_rcfile(char *rcfile) { Line 264  int check_rcfile(char *rcfile) {
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    
# Line 311  int exist_file(char *file) { Line 311  int exist_file(char *file) {
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;

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26