summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-08-19 08:47:57 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-08-19 08:47:57 +0000
commit5675e586c7a4e7b7e25bc86ebf2642ec31fc5cf5 (patch)
treed2d364cbe08359039082f88a1ce85697cff11e01
parent743a0021478e0554e48720ccd7a451f38037da22 (diff)
more useful error message
-rw-r--r--sbin/ipsecctl/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ipsecctl/parse.y b/sbin/ipsecctl/parse.y
index 78694d44e75..b0b5c149eab 100644
--- a/sbin/ipsecctl/parse.y
+++ b/sbin/ipsecctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.22 2005/08/09 12:37:45 hshoexer Exp $ */
+/* $OpenBSD: parse.y,v 1.23 2005/08/19 08:47:56 hshoexer Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -901,7 +901,7 @@ parsekeyfile(char *filename)
unsigned char *hex;
if (stat(filename, &sb) < 0)
- err(1, "stat");
+ err(1, "stat %s", filename);
if ((sb.st_size > KEYSIZE_LIMIT) || (sb.st_size == 0))
errx(1, "key too %s", sb.st_size ? "large" :
"small");