summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Kukuk <kukuk@thkukuk.de>2006-05-23 20:34:53 +0000
committerThorsten Kukuk <kukuk@thkukuk.de>2006-05-23 20:34:53 +0000
commit5c703be9bca1107cd74269cbcc7ac20bfc7e016e (patch)
treecace68ba4300b0a56a51f37c3de88eda8ea3b8c3
parent9251be9693b1c8c56ed067438858e740cba57570 (diff)
Relevant BUGIDs:
Purpose of commit: cleanup Commit summary: --------------- 2006-05-23 Thorsten Kukuk <kukuk@thkukuk.de> * modules/pam_echo/pam_echo.c (pam_echo): Use pam_modutil_read() instead of read().
-rw-r--r--ChangeLog5
-rw-r--r--modules/pam_echo/pam_echo.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c55a47ac..52530256 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-23 Thorsten Kukuk <kukuk@thkukuk.de>
+
+ * modules/pam_echo/pam_echo.c (pam_echo): Use pam_modutil_read()
+ instead of read().
+
2006-05-22 Thorsten Kukuk <kukuk@thkukuk.de>
* modules/pam_listfile/pam_listfile.c (pam_sm_authenticate):
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);