summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2005-07-17 17:18:49 +1000
committerDamien Miller <djm@mindrot.org>2005-07-17 17:18:49 +1000
commit37294fb6307202e6f52d7046b3ddb56a4786d27f (patch)
treee6d081a240cecf3830e0d756cdb28f1d76952d86
parent94cf4c8448bab8f1ad563868089bb0ea1ff92213 (diff)
- (djm) [auth-pam.c sftp.c] spaces vs. tabs at start of line
-rw-r--r--ChangeLog3
-rw-r--r--auth-pam.c10
-rw-r--r--sftp.c8
3 files changed, 11 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 774cf1a97..647ad0160 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@
7 - (djm) [acss.c auth-pam.c auth-shadow.c auth-skey.c auth1.c canohost.c] 7 - (djm) [acss.c auth-pam.c auth-shadow.c auth-skey.c auth1.c canohost.c]
8 [cipher-acss.c loginrec.c ssh-rand-helper.c sshd.c] Fix whitespace at EOL 8 [cipher-acss.c loginrec.c ssh-rand-helper.c sshd.c] Fix whitespace at EOL
9 in portable too ("perl -p -i -e 's/\s+$/\n/' *.[ch]") 9 in portable too ("perl -p -i -e 's/\s+$/\n/' *.[ch]")
10 - (djm) [auth-pam.c sftp.c] spaces vs. tabs at start of line
10 11
1120050716 1220050716
12 - (dtucker) [auth-pam.c] Ensure that only one side of the authentication 13 - (dtucker) [auth-pam.c] Ensure that only one side of the authentication
@@ -2840,4 +2841,4 @@
2840 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 2841 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
2841 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 2842 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
2842 2843
2843$Id: ChangeLog,v 1.3848 2005/07/17 07:04:47 djm Exp $ 2844$Id: ChangeLog,v 1.3849 2005/07/17 07:18:49 djm Exp $
diff --git a/auth-pam.c b/auth-pam.c
index 4a2841924..0446cd559 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -47,7 +47,7 @@
47 47
48/* Based on $FreeBSD: src/crypto/openssh/auth2-pam-freebsd.c,v 1.11 2003/03/31 13:48:18 des Exp $ */ 48/* Based on $FreeBSD: src/crypto/openssh/auth2-pam-freebsd.c,v 1.11 2003/03/31 13:48:18 des Exp $ */
49#include "includes.h" 49#include "includes.h"
50RCSID("$Id: auth-pam.c,v 1.125 2005/07/17 07:04:47 djm Exp $"); 50RCSID("$Id: auth-pam.c,v 1.126 2005/07/17 07:18:50 djm Exp $");
51 51
52#ifdef USE_PAM 52#ifdef USE_PAM
53#if defined(HAVE_SECURITY_PAM_APPL_H) 53#if defined(HAVE_SECURITY_PAM_APPL_H)
@@ -130,7 +130,7 @@ sshpam_sigchld_handler(int sig)
130 if (cleanup_ctxt == NULL) 130 if (cleanup_ctxt == NULL)
131 return; /* handler called after PAM cleanup, shouldn't happen */ 131 return; /* handler called after PAM cleanup, shouldn't happen */
132 if (waitpid(cleanup_ctxt->pam_thread, &sshpam_thread_status, WNOHANG) 132 if (waitpid(cleanup_ctxt->pam_thread, &sshpam_thread_status, WNOHANG)
133 <= 0) { 133 <= 0) {
134 /* PAM thread has not exitted, privsep slave must have */ 134 /* PAM thread has not exitted, privsep slave must have */
135 kill(cleanup_ctxt->pam_thread, SIGTERM); 135 kill(cleanup_ctxt->pam_thread, SIGTERM);
136 if (waitpid(cleanup_ctxt->pam_thread, &sshpam_thread_status, 0) 136 if (waitpid(cleanup_ctxt->pam_thread, &sshpam_thread_status, 0)
@@ -780,7 +780,7 @@ sshpam_respond(void *ctx, u_int num, char **resp)
780 buffer_init(&buffer); 780 buffer_init(&buffer);
781 if (sshpam_authctxt->valid && 781 if (sshpam_authctxt->valid &&
782 (sshpam_authctxt->pw->pw_uid != 0 || 782 (sshpam_authctxt->pw->pw_uid != 0 ||
783 options.permit_root_login == PERMIT_YES)) 783 options.permit_root_login == PERMIT_YES))
784 buffer_put_cstring(&buffer, *resp); 784 buffer_put_cstring(&buffer, *resp);
785 else 785 else
786 buffer_put_cstring(&buffer, badpw); 786 buffer_put_cstring(&buffer, badpw);
@@ -1144,7 +1144,7 @@ sshpam_auth_passwd(Authctxt *authctxt, const char *password)
1144 * information via timing (eg if the PAM config has a delay on fail). 1144 * information via timing (eg if the PAM config has a delay on fail).
1145 */ 1145 */
1146 if (!authctxt->valid || (authctxt->pw->pw_uid == 0 && 1146 if (!authctxt->valid || (authctxt->pw->pw_uid == 0 &&
1147 options.permit_root_login != PERMIT_YES)) 1147 options.permit_root_login != PERMIT_YES))
1148 sshpam_password = badpw; 1148 sshpam_password = badpw;
1149 1149
1150 sshpam_err = pam_set_item(sshpam_handle, PAM_CONV, 1150 sshpam_err = pam_set_item(sshpam_handle, PAM_CONV,
@@ -1158,7 +1158,7 @@ sshpam_auth_passwd(Authctxt *authctxt, const char *password)
1158 if (sshpam_err == PAM_SUCCESS && authctxt->valid) { 1158 if (sshpam_err == PAM_SUCCESS && authctxt->valid) {
1159 debug("PAM: password authentication accepted for %.100s", 1159 debug("PAM: password authentication accepted for %.100s",
1160 authctxt->user); 1160 authctxt->user);
1161 return 1; 1161 return 1;
1162 } else { 1162 } else {
1163 debug("PAM: password authentication failed for %.100s: %s", 1163 debug("PAM: password authentication failed for %.100s: %s",
1164 authctxt->valid ? authctxt->user : "an illegal user", 1164 authctxt->valid ? authctxt->user : "an illegal user",
diff --git a/sftp.c b/sftp.c
index a77be84c6..6dff39ede 100644
--- a/sftp.c
+++ b/sftp.c
@@ -1299,8 +1299,8 @@ interactive_loop(int fd_in, int fd_out, char *file1, char *file2)
1299 setvbuf(stdout, NULL, _IOLBF, 0); 1299 setvbuf(stdout, NULL, _IOLBF, 0);
1300 setvbuf(infile, NULL, _IOLBF, 0); 1300 setvbuf(infile, NULL, _IOLBF, 0);
1301#else 1301#else
1302 setlinebuf(stdout); 1302 setlinebuf(stdout);
1303 setlinebuf(infile); 1303 setlinebuf(infile);
1304#endif 1304#endif
1305 1305
1306 err = 0; 1306 err = 0;
@@ -1562,8 +1562,8 @@ main(int argc, char **argv)
1562 err = interactive_loop(in, out, file1, file2); 1562 err = interactive_loop(in, out, file1, file2);
1563 1563
1564#if !defined(USE_PIPES) 1564#if !defined(USE_PIPES)
1565 shutdown(in, SHUT_RDWR); 1565 shutdown(in, SHUT_RDWR);
1566 shutdown(out, SHUT_RDWR); 1566 shutdown(out, SHUT_RDWR);
1567#endif 1567#endif
1568 1568
1569 close(in); 1569 close(in);