URL:
https://github.com/freeipa/freeipa/pull/3228
Author: rcritten
Title: #3228: When reading SSH pub key don't assume last character is newline
Action: opened
PR body:
"""
The code was attempting to strip off any trailing newline and then
calling lstrip() on the rest.
This assumes that the key has a trailing newline. At best this
can cause the last character of the comment to be lost. If there
is no comment it will fail to load the key because it is invalid.
Patch by Félix-Antoine Fortin <felix-antoine.fortin(a)calculquebec.ca>
https://pagure.io/freeipa/issue/7959
Signed-off-by: Rob Crittenden <rcritten(a)redhat.com>
There is a lot of very good analysis within the ticket.
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/3228/head:pr3228
git checkout pr3228