Expansion of hostname

Markus Friedl markus at openbsd.org
Sat Feb 9 00:03:16 EST 2002


On Fri, Feb 08, 2002 at 06:00:26PM +0900, Shun-ichi GOTO wrote:
> --- readconf.c	7 Nov 2001 01:18:31 -0000	1.1.1.2
> +++ readconf.c	8 Feb 2002 08:04:10 -0000
> @@ -720,8 +720,9 @@ 	default:
>  	linenum = 0;
>  	while (fgets(line, sizeof(line), f)) {
>  		/* Update line number counter. */
> +		const char *hostname = (options->hostname)? options->hostname: host;
>  		linenum++;
> -		if (process_config_line(options, host, line, filename, linenum, &active) != 0)
> +		if (process_config_line(options, hostname, line, filename, linenum, &active) != 0)
>  			bad_options++;
>  	}
>  	fclose(f);
> 
> 
> 
> Is this behaviour acceptable?

i think this will break many config files.



More information about the openssh-unix-dev mailing list