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

Diff of /monit/validate.c

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

revision 1.63 by martinp, Tue Aug 5 07:55:22 2003 UTC revision 1.64 by martinp, Tue Aug 5 14:11:45 2003 UTC
# Line 315  static int check_directory(Service_T s) Line 315  static int check_directory(Service_T s)
315      return FALSE;      return FALSE;
316    }    }
317    
318    if( s->perm != -1 && (stat_buf.st_mode & 07777) != s->perm ) {    if(s->perm != -1) {
319      Event_post(s, EVENT_PERMISSION,      if( (stat_buf.st_mode & 07777) != s->perm ) {
320                 "Event: '%s' permission test failed -- "        Event_post(s, EVENT_PERMISSION,
321                 "current permission: %o\n", s->name, stat_buf.st_mode&07777);                   "Event: '%s' permission test failed -- "
322      return FALSE;                   "current permission: %o\n",
323                     s->name, stat_buf.st_mode&07777);
324          return FALSE;
325        }
326        DEBUG("'%s' directory permission check passed [current permission=%o]\n",
327              s->name, stat_buf.st_mode&07777);
328    }    }
329    
   DEBUG("'%s' directory permission check passed [current permission=%o]\n",  
         s->name, stat_buf.st_mode&07777);  
   
330    return TRUE;    return TRUE;
331    
332  }  }

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64

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