aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_echo
diff options
context:
space:
mode:
Diffstat (limited to 'modules/pam_echo')
-rw-r--r--modules/pam_echo/pam_echo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/pam_echo/pam_echo.c b/modules/pam_echo/pam_echo.c
index 61826437..31ebca22 100644
--- a/modules/pam_echo/pam_echo.c
+++ b/modules/pam_echo/pam_echo.c
@@ -58,6 +58,7 @@
#define PAM_SM_SESSION
#include <security/pam_modules.h>
+#include <security/pam_modutil.h>
#include <security/_pam_macros.h>
#include <security/pam_ext.h>
@@ -182,7 +183,7 @@ pam_echo (pam_handle_t *pamh, int flags, int argc, const char **argv)
if (!mtmp)
return PAM_BUF_ERR;
- if (read (fd, mtmp, st.st_size) == -1)
+ if (pam_modutil_read (fd, mtmp, st.st_size) == -1)
{
pam_syslog (pamh, LOG_ERR, "Error while reading %s: %m", file);
free (mtmp);