progs/key.c: Exit with `EXIT_FAILURE' on keyring open failure.
[catacomb] / progs / key.c
index fe5f313..83d27e5 100644 (file)
@@ -100,8 +100,10 @@ static const char *keyfile = "keyring";
 
 static void doopen(key_file *f, unsigned how)
 {
-  if (key_open(f, keyfile, how, key_moan, 0))
-    die(1, "couldn't open keyring `%s': %s", keyfile, strerror(errno));
+  if (key_open(f, keyfile, how, key_moan, 0)){
+    die(EXIT_FAILURE, "couldn't open keyring `%s': %s",
+       keyfile, strerror(errno));
+  }
 }
 
 /* --- @doclose@ --- *