1
0
mirror of https://github.com/rd235/cado synced 2024-12-26 22:12:55 +01:00

libexecs 1.4 compatibility

This commit is contained in:
Renzo Davoli 2023-01-30 19:52:35 +01:00
parent 4486b11c54
commit 652087d8a0

View File

@ -113,7 +113,12 @@ uint64_t get_authorized_caps(char **user_groups, uint64_t reqset) {
} }
if (usermatch) { if (usermatch) {
if (tokencondition) { if (tokencondition) {
if (system_execsa(tokencondition) == 0) if
#if defined(EXECS_SOVERSION) && EXECS_SOVERSION > 0
(system_execsqa(tokencondition) == 0)
#else
(system_execsa(tokencondition) == 0)
#endif
ok_caps |= capset; ok_caps |= capset;
} else } else
ok_caps |= capset; ok_caps |= capset;