librc: fix EACCES errno false-positive crash
Use errno != EACCES to fix false-positive for non-root users with grsecurity kernels. Fixes: 37e29442721a ("librc: Add check for crashed state") This fixes #237
This commit is contained in:
parent
2eea73bfd5
commit
84ed570eae
@ -850,7 +850,7 @@ rc_service_state(const char *service)
|
||||
}
|
||||
|
||||
if (state & RC_SERVICE_STARTED) {
|
||||
if (rc_service_daemons_crashed(service))
|
||||
if (rc_service_daemons_crashed(service) && errno != EACCES)
|
||||
state |= RC_SERVICE_CRASHED;
|
||||
}
|
||||
if (state & RC_SERVICE_STOPPED) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user