diff options
author | Stef Walter <stef@memberwebs.com> | 2008-06-11 21:48:27 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2008-06-11 21:48:27 +0000 |
commit | 0cb3f6098d959479a96c26a92d91becc2110b30d (patch) | |
tree | 22f1447d6c7ad77d802c476297cf9547f822f81a /daemon/misc.c | |
parent | 67d7a6cc4d3234ac93e521632701e8d42513e042 (diff) |
Support getting groups from the server and limiting access based on LDAP groups. See #112
Diffstat (limited to 'daemon/misc.c')
-rw-r--r-- | daemon/misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon/misc.c b/daemon/misc.c index ca14ee3..49c585e 100644 --- a/daemon/misc.c +++ b/daemon/misc.c @@ -27,6 +27,7 @@ #include <err.h> #include <stdio.h> #include <fcntl.h> +#include <unistd.h> extern int g_debuglevel; extern int g_daemonized; @@ -53,7 +54,6 @@ static void vmessage(const ha_request_t* rq, int level, int err, size_t len; char* m; int e = errno; - int x; if(g_daemonized) { @@ -390,7 +390,7 @@ int ha_uriparse(ha_buffer_t* buf, const char* suri, ha_uri_t* uri) if(str[0] == '/') { deal_with_path: - *str == 0; + *str = 0; ++str; /* @@ -611,7 +611,7 @@ int ha_uricmp(ha_uri_t* one, ha_uri_t* two) /* The scheme */ if((r = uri_cmp_part_s(one->scheme, two->scheme, "http", 0)) != 0 || - (r = uri_cmp_part_s(one->host, two->host, NULL, 1)) != 0 != 0 || + (r = uri_cmp_part_s(one->host, two->host, NULL, 1)) != 0 || (r = uri_cmp_part_n(one->port, two->port, 80)) != 0 || (r = uri_cmp_part_s(one->path, two->path, NULL, 0)) != 0 || (r = uri_cmp_part_s(one->query, two->query, NULL, 0)) != 0 || |