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

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