mirror of
https://github.com/boltgolt/howdy.git
synced 2024-09-12 09:41:18 +02:00
fix: check non-zero return code for posix_spawnp
This commit is contained in:
parent
9dae2b66b3
commit
5afb74857e
1 changed files with 1 additions and 1 deletions
|
@ -271,7 +271,7 @@ auto identify(pam_handle_t *pamh, int flags, int argc, const char **argv,
|
|||
|
||||
// Start the python subprocess
|
||||
if (posix_spawnp(&child_pid, PYTHON_EXECUTABLE, nullptr, nullptr,
|
||||
const_cast<char *const *>(args), nullptr) > 0) {
|
||||
const_cast<char *const *>(args), nullptr) != 0) {
|
||||
syslog(LOG_ERR, "Can't spawn the howdy process: %s (%d)", strerror(errno),
|
||||
errno);
|
||||
return PAM_SYSTEM_ERR;
|
||||
|
|
Loading…
Reference in a new issue