Skip to content
Snippets Groups Projects
Commit 7f1a221a authored by Michael Heimpold's avatar Michael Heimpold Committed by Erik Karlsson
Browse files

openssh: fix recursive key file removal


The -r option is not required here but should also not hurt,
since it was already tested, that $key is a file.
However, to express the intent of the command more clearly,
let's drop it.

Signed-off-by: default avatarMichael Heimpold <mhei@heimpold.de>
parent a3bd5a6f
No related branches found
No related tags found
1 merge request!111openssh: fix recursive key file removal
......@@ -348,7 +348,7 @@ start_service()
[ -f $key ] && {
[ -x /usr/bin/ssh-keygen ] && {
if ! /usr/bin/ssh-keygen -y -f $key > /dev/null 2>&1; then
rm -rf $key
rm -f $key
fi
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment