Skip to content

Commit 6adb0d2

Browse files
committed
MDEV-22459 pam v2 should log an error if auth_pam_tool exec fails
1 parent a878344 commit 6adb0d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugin/auth_pam/auth_pam.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ static int pam_auth(MYSQL_PLUGIN_VIO *vio, MYSQL_SERVER_AUTH_INFO *info)
9090
PAM_DEBUG((stderr, "PAM: execute pam sandbox [%s].\n", toolpath));
9191
(void) execl(toolpath, toolpath, NULL);
9292
PAM_DEBUG((stderr, "PAM: exec() failed.\n"));
93+
my_printf_error(1, "PAM: Cannot execute %s (errno: %M)", ME_ERROR_LOG_ONLY,
94+
toolpath, errno);
9395
exit(-1);
9496
}
9597

0 commit comments

Comments
 (0)