diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-06-06 23:56:11 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2025-06-06 23:56:11 +0000 |
| commit | 592c13a20f5ece4a596635c75bf096ccd3dfa6b8 (patch) | |
| tree | e0d5ade907ffea45b8923430c19fb988cc13ee04 /src/libtipidee | |
| parent | 02a53683c3945626cdf2712172dbea9d168bf292 (diff) | |
| download | tipidee-592c13a20f5ece4a596635c75bf096ccd3dfa6b8.tar.gz | |
Prepare for 0.0.7.0; add noredirect
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libtipidee')
| -rw-r--r-- | src/libtipidee/tipidee_conf_get_redirection.c | 5 |
1 files changed, 1 insertions, 4 deletions
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 <errno.h> #include <string.h> -#include <skalibs/lolstdio.h> - #include <tipidee/conf.h> #include <skalibs/posixishard.h> @@ -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 ; } |
