summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <kde@opensource.sf-tec.de>2011-11-20 15:36:33 (GMT)
committerRolf Eike Beer <kde@opensource.sf-tec.de>2011-11-20 15:36:33 (GMT)
commitde841cf6a13d5c2ff5bb3cdb9002acc3afae05c9 (patch)
tree932ff750b83da54d9f4c0f383739adf7cf398d0c
parent1f04f57e5f5c4f88aae3769ad22723a3309c4c6e (diff)
prevent KGpg to endlessly loop while trying to decrypt a detached signature
This can't work, so there is no value in trying it. BUG:286991
-rw-r--r--kgpgtextinterface.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/kgpgtextinterface.cpp b/kgpgtextinterface.cpp
index 0fe4c74..2ee402e 100644
--- a/kgpgtextinterface.cpp
+++ b/kgpgtextinterface.cpp
@@ -454,6 +454,9 @@ KGpgTextInterface::decryptFileProcess()
emit decryptFileFinished(1);
return;
}
+ } else if (line.contains("GET_LINE detached_signature.filename")) {
+ // oops, we try to decrypt a signature. This can't work.
+ d->m_process->closeWriteChannel();
} else {
d->m_process->write("quit\n");
}