aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-hsrv.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-08-31 14:16:07 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-08-31 14:16:07 +0200
commitdc011f99aed9407c8319b1b70a81f56ad2f02bc8 (patch)
treef463730cee8be5a4a352dcc989e9aebd1be5d810 /src/afb-hsrv.c
parent7c7d610ccbd7e30204501622ebee6690aef5af0c (diff)
Add the option roothttp
This option tells to the HTTP part of the binder the location of the root directory for HTTP. Change-Id: I080adcaaee952e375128eff3898f29332939c5f5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-hsrv.c')
-rw-r--r--src/afb-hsrv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afb-hsrv.c b/src/afb-hsrv.c
index 361d13ff..030bec5b 100644
--- a/src/afb-hsrv.c
+++ b/src/afb-hsrv.c
@@ -359,12 +359,12 @@ int afb_hsrv_add_alias_root(struct afb_hsrv *hsrv, const char *prefix, struct lo
return 0;
}
-int afb_hsrv_add_alias(struct afb_hsrv *hsrv, const char *prefix, const char *alias, int priority, int relax)
+int afb_hsrv_add_alias(struct afb_hsrv *hsrv, const char *prefix, int dirfd, const char *alias, int priority, int relax)
{
struct locale_root *root;
int rc;
- root = locale_root_create_at(AT_FDCWD, alias);
+ root = locale_root_create_at(dirfd, alias);
if (root == NULL) {
/* TODO message */
rc = 0;