Title: #5552: [Backport][ipa-4-9] sudocmd: ensure command doesn't contain trailing
dot before adding it
This PR was opened automatically because PR #5538 was pushed to master and backport to
ipa-4-9 is required.
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/5552/head:pr5552
git checkout pr5552