summaryrefslogtreecommitdiff
path: root/src/pkcs11.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-03-11 16:10:36 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2015-03-11 16:12:30 +0100
commit5fec6230a44b152c72b18ec895e97e6d929adfe0 (patch)
tree42c6149f10d24305afd5f14564fa8bac5374e1b6 /src/pkcs11.c
parentf1f4c07ee12307c894d6c1673e453b87fd5477b5 (diff)
downloadgnutls-5fec6230a44b152c72b18ec895e97e6d929adfe0.tar.gz
p11tool: exit with non-zero reason if no objects are found
Diffstat (limited to 'src/pkcs11.c')
-rw-r--r--src/pkcs11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkcs11.c b/src/pkcs11.c
index 8b527b3e96..bd8fe9f36c 100644
--- a/src/pkcs11.c
+++ b/src/pkcs11.c
@@ -140,7 +140,7 @@ pkcs11_list(FILE * outfile, const char *url, int type, unsigned int flags,
if (crt_list_size == 0) {
fprintf(stderr, "No matching objects found\n");
- exit(0);
+ exit(2);
}
for (i = 0; i < crt_list_size; i++) {