Verified Commit 29ef0b50 authored by Andre Heinecke's avatar Andre Heinecke
Browse files

Fix overwriting files when exporting secret keys

The save file dialog already asks for permission to overwrite
but GnuPG fails silently in batch mode to overwrite files.
Adding --yes as an option changes that behavior and
files are properly overwritten.

GnuPG-Bug-Id: T4709
parent fea8ae6c
......@@ -117,7 +117,7 @@ QStringList ExportSecretKeyCommand::arguments() const
result << gpgSmPath();
}
result << QStringLiteral("--output") << m_filename;
result << QStringLiteral("--yes") << QStringLiteral("--output") << m_filename;
if (m_armor) {
result << QStringLiteral("--armor");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment