From 592c13a20f5ece4a596635c75bf096ccd3dfa6b8 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 6 Jun 2025 23:56:11 +0000 Subject: Prepare for 0.0.7.0; add noredirect Signed-off-by: Laurent Bercot --- src/libtipidee/tipidee_conf_get_redirection.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/libtipidee') diff --git a/src/libtipidee/tipidee_conf_get_redirection.c b/src/libtipidee/tipidee_conf_get_redirection.c index b117481..9554227 100644 --- a/src/libtipidee/tipidee_conf_get_redirection.c +++ b/src/libtipidee/tipidee_conf_get_redirection.c @@ -3,8 +3,6 @@ #include #include -#include - #include #include @@ -24,12 +22,11 @@ static int get_redir (tipidee_conf const *conf, size_t minl, char *key, size_t l v = tipidee_conf_get_string(conf, key) ; key[0] = 'r' ; } - if (!v) return 0 ; + if (!v || v[0] == ' ') return 0 ; if (v[0] < '@' || v[0] > 'C') return (errno = EPROTO, -1) ; r->type = v[0] & ~'@' ; r->location = v+1 ; r->sub = path + (l - minl + 1) ; - LOLDEBUG("get_redir: found redirection of type %c to %s with sub %s", v[0], r->location, r->sub) ; return 1 ; } -- cgit v1.3.1