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

Diff of /monit/files.c

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

revision 1.9 by hauk, Thu Sep 12 17:05:25 2002 UTC revision 1.10 by hauk, Fri Sep 13 10:32:40 2002 UTC
# Line 256  int check_rcfile(char *rcfile) { Line 256  int check_rcfile(char *rcfile) {
256      return FALSE;      return FALSE;
257            
258    }    }
   
   if(!S_ISREG(buf.st_mode)) {  
       
     error("%s: The control file '%s' is not a regular file.\n", prog, rcfile);  
       
     return FALSE;  
   
   }  
259            
260    if(S_ISLNK(buf.st_mode)) {    if(S_ISLNK(buf.st_mode)) {
261            
262      error("%s: The control file' %s' must not be a symbolic link.\n",      error("%s: The control file '%s' must not be a symbolic link.\n",
263            prog, rcfile);            prog, rcfile);
264            
265      return(FALSE);      return(FALSE);
266            
267    }    }
268    
269      if(!S_ISREG(buf.st_mode)) {
270        
271        error("%s: The control file '%s' is not a regular file.\n", prog, rcfile);
272        
273        return FALSE;
274    
275      }
276    
277    if(buf.st_uid != geteuid())  {    if(buf.st_uid != geteuid())  {
278            
279      error("%s: The control file %s must be owned by you.\n", prog, rcfile);      error("%s: The control file '%s' must be owned by you.\n", prog, rcfile);
280                        
281      return FALSE;      return FALSE;
282            

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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