From: Jose Bollo Date: Mon, 2 Dec 2019 19:40:50 +0000 (+0100) Subject: Relax constraint on aliases X-Git-Tag: 8.99.2~2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-binder.git;a=commitdiff_plain;h=c79b6bac7d0f6ad6139326d932d119484be53cc0 Relax constraint on aliases Without relaxing constraint, it is impossible to alias 2 directory contents for the same prefix. Relaxing it is needed for implementing ".well-known" interface. Bug-AGL: SPEC-2968 Signed-off-by: Jose Bollo Change-Id: I339699bbe66ed3df74ed4ac92344646339e5f2ad --- diff --git a/src/main-afb-daemon.c b/src/main-afb-daemon.c index a8d99ff5..f9c4ed4e 100644 --- a/src/main-afb-daemon.c +++ b/src/main-afb-daemon.c @@ -298,7 +298,7 @@ static int init_alias(void *closure, const char *spec) *path++ = 0; INFO("Alias for url=%s to path=%s", spec, path); return afb_hsrv_add_alias(hsrv, spec, afb_common_rootdir_get_fd(), path, - 0, 0); + 0, 1); } static int init_http_server(struct afb_hsrv *hsrv)