svn commit: r208735 - stable/8/crypto/openssh

Dag-Erling Smorgrav des at FreeBSD.org
Wed Jun 2 10:26:31 UTC 2010


Author: des
Date: Wed Jun  2 10:26:31 2010
New Revision: 208735
URL: http://svn.freebsd.org/changeset/base/208735

Log:
  Fix expansion of AuthorizedKeysFile (upstream patch)
  
  PR:		146334, 145940
  Approved by:	re (kib@)

Modified:
  stable/8/crypto/openssh/servconf.c

Modified: stable/8/crypto/openssh/servconf.c
==============================================================================
--- stable/8/crypto/openssh/servconf.c	Wed Jun  2 10:20:38 2010	(r208734)
+++ stable/8/crypto/openssh/servconf.c	Wed Jun  2 10:26:31 2010	(r208735)
@@ -1227,7 +1227,17 @@ process_server_config_line(ServerOptions
 		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 svn-src-stable-8 mailing list