316 |
} |
} |
317 |
|
|
318 |
if( s->perm != -1 && (stat_buf.st_mode & 07777) != s->perm ) { |
if( s->perm != -1 && (stat_buf.st_mode & 07777) != s->perm ) { |
319 |
Event_post(s, EVENT_RESTART, |
Event_post(s, EVENT_PERMISSION, |
320 |
"Event: '%s' permission test failed -- " |
"Event: '%s' permission test failed -- " |
321 |
"current permission: %o\n", s->name, stat_buf.st_mode&07777); |
"current permission: %o\n", s->name, stat_buf.st_mode&07777); |
322 |
return FALSE; |
return FALSE; |
352 |
|
|
353 |
if(s->perm != -1) { |
if(s->perm != -1) { |
354 |
if( (stat_buf.st_mode & 07777) != s->perm ) { |
if( (stat_buf.st_mode & 07777) != s->perm ) { |
355 |
Event_post(s, EVENT_RESTART, |
Event_post(s, EVENT_PERMISSION, |
356 |
"Event: '%s' permission test failed -- " |
"Event: '%s' permission test failed -- " |
357 |
"current permission: %o\n", |
"current permission: %o\n", |
358 |
s->name, stat_buf.st_mode&07777); |
s->name, stat_buf.st_mode&07777); |
395 |
|
|
396 |
if(s->perm != -1) { |
if(s->perm != -1) { |
397 |
if( (stat_buf.st_mode & 07777) != s->perm ) { |
if( (stat_buf.st_mode & 07777) != s->perm ) { |
398 |
Event_post(s, EVENT_RESTART, |
Event_post(s, EVENT_PERMISSION, |
399 |
"Event: '%s' permission test failed -- " |
"Event: '%s' permission test failed -- " |
400 |
"current permission: %o\n", |
"current permission: %o\n", |
401 |
s->name, stat_buf.st_mode&07777); |
s->name, stat_buf.st_mode&07777); |