0
0
Fork 0
mirror of https://github.com/boltgolt/howdy.git synced 2024-09-12 09:41:18 +02:00

fix: let child inherit standard descriptors

This commit is contained in:
MusiKid 2022-01-21 12:59:12 +01:00 committed by musikid
parent 4858071532
commit bd0d35427d
No known key found for this signature in database
GPG key ID: 7567D43648C6E2F4

View file

@ -247,10 +247,6 @@ int identify(pam_handle_t *pamh, int flags, int argc, const char **argv,
posix_spawn_file_actions_t file_actions;
posix_spawn_file_actions_init(&file_actions);
// We close standard descriptors for the child
posix_spawn_file_actions_addclose(&file_actions, STDOUT_FILENO);
posix_spawn_file_actions_addclose(&file_actions, STDERR_FILENO);
posix_spawn_file_actions_addclose(&file_actions, STDIN_FILENO);
const char *const args[] = {
"/usr/bin/python3", "/lib/security/howdy/compare.py", username, nullptr};