From be09d6354efcb2571731bdffc47da86f22621ac8 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Wed, 21 Sep 2005 10:00:58 +0000 Subject: Relevant BUGIDs: Purpose of commit: new feature Commit summary: --------------- Moved functions from pammodutil to libpam. --- modules/pam_unix/pam_unix_passwd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/pam_unix/pam_unix_passwd.c') diff --git a/modules/pam_unix/pam_unix_passwd.c b/modules/pam_unix/pam_unix_passwd.c index 54b3de83..7212952e 100644 --- a/modules/pam_unix/pam_unix_passwd.c +++ b/modules/pam_unix/pam_unix_passwd.c @@ -83,7 +83,7 @@ static security_context_t prev_context=NULL; #include #endif /* LINUX_PAM */ -#include +#include #include "yppasswd.h" #include "md5.h" @@ -282,14 +282,14 @@ static int _unix_run_shadow_binary(pam_handle_t *pamh, unsigned int ctrl, const /* if the stored password is NULL */ int rc=0; if (fromwhat) - _pammodutil_write(fds[1], fromwhat, strlen(fromwhat)+1); + pam_modutil_write(fds[1], fromwhat, strlen(fromwhat)+1); else - _pammodutil_write(fds[1], "", 1); + pam_modutil_write(fds[1], "", 1); if (towhat) { - _pammodutil_write(fds[1], towhat, strlen(towhat)+1); + pam_modutil_write(fds[1], towhat, strlen(towhat)+1); } else - _pammodutil_write(fds[1], "", 1); + pam_modutil_write(fds[1], "", 1); close(fds[0]); /* close here to avoid possible SIGPIPE above */ close(fds[1]); @@ -463,7 +463,7 @@ static int save_old_password(pam_handle_t *pamh, fclose(opwfile); if (!found) { - pwd = _pammodutil_getpwnam(pamh, forwho); + pwd = pam_modutil_getpwnam(pamh, forwho); if (pwd == NULL) { err = 1; } else { -- cgit v1.2.3