opendoas

my fork of doas with custom prompt
git clone git://git.kocotian.pl/opendoas.git
Log | Files | Refs | README | LICENSE

commit 8b2a776ddd47b74bb814a00ea7af3cc970063db7
parent 38e072b353f5b1325bbf52dfb759fe49ff6ef0f7
Author: Duncaen <mail@duncano.de>
Date:   Wed, 30 Jan 2019 23:43:12 +0100

pam: close timestamp fd in both both processes

Diffstat:
Mpam.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/pam.c b/pam.c @@ -323,8 +323,13 @@ pamauth(const char *user, const char *myname, int interactive, int nopass, int p } /* return as child */ - if (child == 0) + if (child == 0) { +#ifdef USE_TIMESTAMP + if (fd != -1) + close(fd); +#endif return; + } #ifdef USE_TIMESTAMP if (fd != -1) {