diff options
author | Sergei Golubchik <serg@mariadb.org> | 2020-05-08 18:20:38 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2020-05-08 18:20:38 +0200 |
commit | 6adb0d2f7c8cdf537851976e204510cc8922d873 (patch) | |
tree | 37ef55b2c6d21ba3ddedde444af0788d65f61cbd | |
parent | a878344ee5f4bf5bf9ecb8ae03701233ae89835e (diff) | |
download | mariadb-git-6adb0d2f7c8cdf537851976e204510cc8922d873.tar.gz |
MDEV-22459 pam v2 should log an error if auth_pam_tool exec fails
-rw-r--r-- | plugin/auth_pam/auth_pam.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/auth_pam/auth_pam.c b/plugin/auth_pam/auth_pam.c index 4ce9eb4c2fa..4275b7d6750 100644 --- a/plugin/auth_pam/auth_pam.c +++ b/plugin/auth_pam/auth_pam.c @@ -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); } |