rpms/krb5/devel krb5-1.6.1-pam.patch,1.3,1.4

Nalin Somabhai Dahyabhai (nalin) fedora-extras-commits at redhat.com
Tue Jul 17 21:03:06 UTC 2007


Author: nalin

Update of /cvs/pkgs/rpms/krb5/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22490

Modified Files:
	krb5-1.6.1-pam.patch 
Log Message:
- truncate the echoed string at the newline, not at the first non-cr/lf


krb5-1.6.1-pam.patch:

Index: krb5-1.6.1-pam.patch
===================================================================
RCS file: /cvs/pkgs/rpms/krb5/devel/krb5-1.6.1-pam.patch,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- krb5-1.6.1-pam.patch	25 Jun 2007 00:50:30 -0000	1.3
+++ krb5-1.6.1-pam.patch	17 Jul 2007 21:02:32 -0000	1.4
@@ -441,7 +441,7 @@
 +			if (message->msg_style == PAM_PROMPT_ECHO_ON) {
 +				if (fgets(pwbuf, sizeof(pwbuf),
 +					  stdin) != NULL) {
-+					pwbuf[strspn(pwbuf, "\r\n")] = '\0';
++					pwbuf[strcspn(pwbuf, "\r\n")] = '\0';
 +					pwstring = pwbuf;
 +				}
 +			} else {




More information about the fedora-extras-commits mailing list