Question about ssh-keygen -Y find-principals

Damien Miller djm at mindrot.org
Sat Mar 9 09:17:27 AEDT 2024


On Fri, 8 Mar 2024, Wiktor Kwapisiewicz wrote:

> Hi Damien,
> 
> I've verified that slightly modifying your patch makes the problem disappear:

Thanks.

> I've also experimented with the code a bit and found out that if the line that
> skips the whitespace:
>  	cp = cp + strspn(cp, " \t"); /* skip leading whitespace */
> 
> is adjusted slightly to include newline characters:
> 
>  	cp = cp + strspn(cp, " \t\n\r"); /* skip leading whitespace */
> 	if (*cp == '#' || *cp == '\0')   /* <- no change in this line */
> 
> then the problem also disappears.

I've committed this and it will be in next week's release.

Thanks,
Damien


More information about the openssh-unix-dev mailing list