auth2-pubkey.c - change an error message

Damien Miller djm at mindrot.org
Fri Feb 15 08:36:09 EST 2013


applied - thanks. This will make 6.2

On Thu, 14 Feb 2013, Petr Lautrbach wrote:

> Hi.
> 
> The error message 'AuthorizedKeyCommandUser \"%s\" not found' in
> user_key_command_allowed2()
> should inform about non-existing username, not about command.
> 
> --- auth2-pubkey.c	14 Nov 2012 08:04:02 -0000	1.36
> +++ auth2-pubkey.c	14 Feb 2013 16:50:04 -0000
> @@ -480,7 +480,7 @@
>  	pw = getpwnam(username);
>  	if (pw == NULL) {
>  		error("AuthorizedKeyCommandUser \"%s\" not found: %s",
> -		    options.authorized_keys_command, strerror(errno));
> +		    username, strerror(errno));
>  		free(username);
>  		return 0;
>  	}
> 
> Petr
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at mindrot.org
> https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
> 


More information about the openssh-unix-dev mailing list