From 1d2814a8a9262444b4c30d1cb320448728aa10ab Mon Sep 17 00:00:00 2001 From: Solar Designer Date: Fri, 29 Dec 2023 01:56:58 +0100 Subject: unix_chkpwd, unix_update: Use exit codes 128+ on signals --- modules/pam_unix/passverify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/pam_unix/passverify.c') diff --git a/modules/pam_unix/passverify.c b/modules/pam_unix/passverify.c index 9d365dc9..3bcfed7f 100644 --- a/modules/pam_unix/passverify.c +++ b/modules/pam_unix/passverify.c @@ -1154,7 +1154,7 @@ su_sighandler(int sig) } #endif if (sig > 0) { - _exit(sig); + _exit(128 + (sig & 127)); } } -- cgit v1.2.3