Skip to content

Commit

Permalink
MDEV-22459 pam v2 should log an error if auth_pam_tool exec fails
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed May 8, 2020
1 parent a878344 commit 6adb0d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/auth_pam/auth_pam.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ static int pam_auth(MYSQL_PLUGIN_VIO *vio, MYSQL_SERVER_AUTH_INFO *info)
PAM_DEBUG((stderr, "PAM: execute pam sandbox [%s].\n", toolpath));
(void) execl(toolpath, toolpath, NULL);
PAM_DEBUG((stderr, "PAM: exec() failed.\n"));
my_printf_error(1, "PAM: Cannot execute %s (errno: %M)", ME_ERROR_LOG_ONLY,
toolpath, errno);
exit(-1);
}

Expand Down

0 comments on commit 6adb0d2

Please sign in to comment.