Displaying 1 result from an estimated 1 matches for "strrch".
Did you mean:
strrchr
2017 Jul 03
1
[PATCH] dsync: fix splitting login from host
Using strchr() was splitting login and host at the first
occurrence of '@' which leads to troublesome behaviour.
When calling strace one would notice the misbehaviour:
execve("/usr/sbin/ssh", ["ssh", "-lthomas", "domain.org at 10.8.13.2"
using strrch() however splits login and host at the last occurrence
of '@'.
Signed-off-by: Thomas Reifferscheid <thomas at reifferscheid.org>
---
src/doveadm/doveadm-dsync.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/doveadm/doveadm-dsync.c b/src/doveadm/doveadm-dsyn...