rpms/openssh/F-13 openssh-5.4p1-595935.patch,NONE,1.1

Jan F. Chadima jfch2222 at fedoraproject.org
Mon May 31 10:17:45 UTC 2010


Author: jfch2222

Update of /cvs/pkgs/rpms/openssh/F-13
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv14514

Added Files:
	openssh-5.4p1-595935.patch 
Log Message:
* Mon May 31 2010 Jan F. Chadima <jchadima at redhat.com> - 5.4p1-3
- parsing authorised file (#595935)


openssh-5.4p1-595935.patch:
 servconf.c |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

--- NEW FILE openssh-5.4p1-595935.patch ---
diff -urN openssh-5.4p1/servconf.c /repo/openssh/595935/openssh/devel/openssh-5.5p1/servconf.c
--- openssh-5.4p1/servconf.c	2010-05-31 09:55:22.000000000 +0200
+++ /repo/openssh/595935/openssh/devel/openssh-5.5p1/servconf.c	2010-05-31 09:56:13.000000000 +0200
@@ -1271,7 +1270,17 @@
 		charptr = (opcode == sAuthorizedKeysFile) ?
 		    &options->authorized_keys_file :
 		    &options->authorized_keys_file2;
-		goto parse_filename;
+		arg = strdelim(&cp);
+		if (!arg || *arg == '\0')
+			fatal("%s line %d: missing file name.",
+			    filename, linenum);
+		if (*activep && *charptr == NULL) {
+			*charptr = tilde_expand_filename(arg, getuid());
+			/* increase optional counter */
+			if (intptr != NULL)
+				*intptr = *intptr + 1;
+		}
+		break;
 
 	case sClientAliveInterval:
 		intptr = &options->client_alive_interval;



More information about the scm-commits mailing list