summaryrefslogtreecommitdiff
path: root/tools/mkha1.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2008-06-11 21:48:27 +0000
committerStef Walter <stef@memberwebs.com>2008-06-11 21:48:27 +0000
commit0cb3f6098d959479a96c26a92d91becc2110b30d (patch)
tree22f1447d6c7ad77d802c476297cf9547f822f81a /tools/mkha1.c
parent67d7a6cc4d3234ac93e521632701e8d42513e042 (diff)
Support getting groups from the server and limiting access based on LDAP groups. See #112
Diffstat (limited to 'tools/mkha1.c')
-rw-r--r--tools/mkha1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/mkha1.c b/tools/mkha1.c
index 97c7dcd..c61c725 100644
--- a/tools/mkha1.c
+++ b/tools/mkha1.c
@@ -41,6 +41,7 @@
#include <stdio.h>
#include <unistd.h>
#include <string.h>
+#include <err.h>
#include "compat.h"
#include "buffer.h"
@@ -147,9 +148,9 @@ static char* check_value(ha_buffer_t* buf, char* value, const char* name)
}
if(value[0] == 0)
- errx("%s is empty");
+ errx(1, "%s is empty", name);
if(strchr(value, ':') != NULL)
- errx("%s must be a not contain colons");
+ errx(1, "%s must be a not contain colons", name);
return value;
}