327 |
s->name, stat_buf.st_mode&07777); |
s->name, stat_buf.st_mode&07777); |
328 |
} |
} |
329 |
|
|
330 |
if(s->uid != -1) { |
if(s->uid) { |
331 |
if( (int)stat_buf.st_uid != s->uid ) { |
if( (int)stat_buf.st_uid != s->uid->uid ) { |
332 |
Event_post(s, EVENT_UID, |
Event_post(s, EVENT_UID, |
333 |
"Event: '%s' uid test failed -- " |
"Event: '%s' uid test failed -- " |
334 |
"current uid: %d\n", |
"current uid: %d\n", |
339 |
s->name, (int)stat_buf.st_uid); |
s->name, (int)stat_buf.st_uid); |
340 |
} |
} |
341 |
|
|
342 |
if(s->gid != -1) { |
if(s->gid) { |
343 |
if( (int)stat_buf.st_gid != s->gid ) { |
if( (int)stat_buf.st_gid != s->gid->gid ) { |
344 |
Event_post(s, EVENT_GID, |
Event_post(s, EVENT_GID, |
345 |
"Event: '%s' gid test failed -- " |
"Event: '%s' gid test failed -- " |
346 |
"current gid: %d\n", |
"current gid: %d\n", |
388 |
s->name, stat_buf.st_mode&07777); |
s->name, stat_buf.st_mode&07777); |
389 |
} |
} |
390 |
|
|
391 |
if(s->uid != -1) { |
if(s->uid) { |
392 |
if( (int)stat_buf.st_uid != s->uid ) { |
if( (int)stat_buf.st_uid != s->uid->uid ) { |
393 |
Event_post(s, EVENT_UID, |
Event_post(s, EVENT_UID, |
394 |
"Event: '%s' uid test failed -- " |
"Event: '%s' uid test failed -- " |
395 |
"current uid: %d\n", |
"current uid: %d\n", |
400 |
s->name, (int)stat_buf.st_uid); |
s->name, (int)stat_buf.st_uid); |
401 |
} |
} |
402 |
|
|
403 |
if(s->gid != -1) { |
if(s->gid) { |
404 |
if( (int)stat_buf.st_gid != s->gid ) { |
if( (int)stat_buf.st_gid != s->gid->gid ) { |
405 |
Event_post(s, EVENT_GID, |
Event_post(s, EVENT_GID, |
406 |
"Event: '%s' gid test failed -- " |
"Event: '%s' gid test failed -- " |
407 |
"current gid: %d\n", |
"current gid: %d\n", |
455 |
s->name, stat_buf.st_mode&07777); |
s->name, stat_buf.st_mode&07777); |
456 |
} |
} |
457 |
|
|
458 |
if(s->uid != -1) { |
if(s->uid) { |
459 |
if( (int)stat_buf.st_uid != s->uid ) { |
if( (int)stat_buf.st_uid != s->uid->uid ) { |
460 |
Event_post(s, EVENT_UID, |
Event_post(s, EVENT_UID, |
461 |
"Event: '%s' uid test failed -- " |
"Event: '%s' uid test failed -- " |
462 |
"current uid: %d\n", |
"current uid: %d\n", |
467 |
s->name, (int)stat_buf.st_uid); |
s->name, (int)stat_buf.st_uid); |
468 |
} |
} |
469 |
|
|
470 |
if(s->gid != -1) { |
if(s->gid) { |
471 |
if( (int)stat_buf.st_gid != s->gid ) { |
if( (int)stat_buf.st_gid != s->gid->gid ) { |
472 |
Event_post(s, EVENT_GID, |
Event_post(s, EVENT_GID, |
473 |
"Event: '%s' gid test failed -- " |
"Event: '%s' gid test failed -- " |
474 |
"current gid: %d\n", |
"current gid: %d\n", |