Am Dienstag 16 März 2010 14:56:27 schrieb Jean-Michel Pouré - GOOZE:
> Le mardi 16 mars 2010 à 14:54 +0100, Andreas Jellinghaus a écrit :
> > > You must specify a slot ID
> >
> > pkcs11-tool printed that last line?
> 
> Confirmed. Okay, I am opening a bug. Thanks for the help!

can you test this patch?

Thanks, Andreas
Index: src/tools/pkcs11-tool.c
===================================================================
--- src/tools/pkcs11-tool.c	(revision 4121)
+++ src/tools/pkcs11-tool.c	(working copy)
@@ -543,7 +543,7 @@
 		opt_slot = slot;
 	}
 
-	if (opt_slot == NO_SLOT) {
+	if ((opt_slot == NO_SLOT) && (action_count > do_list_slots)) {
 		fprintf(stderr, "You must specify a slot ID\n");
 		err = 1;
 		goto end;
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to