You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
862 B

From c71a453ff1e19721a9245b8a2d637eabd9f12e54 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nguy=E1=BB=85n=20H=E1=BB=93ng=20Qu=C3=A2n?=
<ng.hong.quan@gmail.com>
Date: Thu, 11 Dec 2014 12:51:15 +0800
Subject: [PATCH 2/2] openpgp-tool: Fix wrong operator
Used "!=" instead of "|="
---
src/tools/openpgp-tool.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: opensc-20150513/src/tools/openpgp-tool.c
===================================================================
--- opensc-20150513.orig/src/tools/openpgp-tool.c
+++ opensc-20150513/src/tools/openpgp-tool.c
@@ -639,10 +639,10 @@ int main(int argc, char **argv)
}
if (opt_delkey)
- exit_status != do_delete_key(card, key_id);
+ exit_status |= do_delete_key(card, key_id);
if (opt_erase)
- exit_status != do_erase(card);
+ exit_status |= do_erase(card);
out:
sc_unlock(card);