]> granicus.if.org Git - linux-pam/commitdiff
Relevant BUGIDs:
authorThorsten Kukuk <kukuk@thkukuk.de>
Tue, 23 May 2006 20:34:53 +0000 (20:34 +0000)
committerThorsten Kukuk <kukuk@thkukuk.de>
Tue, 23 May 2006 20:34:53 +0000 (20:34 +0000)
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().

ChangeLog
modules/pam_echo/pam_echo.c

index c55a47ac3cbbd57742e58563c7a8962d4da49068..52530256baa8889ecc2d8d753904534d8219bc05 100644 (file)
--- 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):
index 6182643734a6183eb1382995de092e941911e164..31ebca220d61f6a72d2475347fda481bb21f979c 100644 (file)
@@ -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);