[gnome-keyring/dbus-api] Better message when gck-ssh-agent-standalone (test binary) used wrong.
- From: Stefan Walter <stefw src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-keyring/dbus-api] Better message when gck-ssh-agent-standalone (test binary) used wrong.
- Date: Fri, 26 Jun 2009 17:45:02 +0000 (UTC)
commit 8ad038146bd8d4a8420e5a197d5076eab51abcd0
Author: Stef Walter <stef memberwebs com>
Date: Fri Jun 26 17:03:25 2009 +0000
Better message when gck-ssh-agent-standalone (test binary) used wrong.
Add a better message when this test binary is used in the wrong way.
Fixes bug #581782 Research by Jon Downland.
pkcs11/ssh-agent/gck-ssh-agent-standalone.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/pkcs11/ssh-agent/gck-ssh-agent-standalone.c b/pkcs11/ssh-agent/gck-ssh-agent-standalone.c
index 98ea002..3dd619c 100644
--- a/pkcs11/ssh-agent/gck-ssh-agent-standalone.c
+++ b/pkcs11/ssh-agent/gck-ssh-agent-standalone.c
@@ -90,6 +90,11 @@ main(int argc, char *argv[])
if (!g_thread_supported ())
g_thread_init (NULL);
+ if (argc <= 1) {
+ g_message ("specify pkcs11 module on the command line");
+ return 1;
+ }
+
module = gp11_module_initialize (argv[1], argc > 2 ? argv[2] : NULL, &error);
if (!module) {
g_message ("couldn't load pkcs11 module: %s", error->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]