if (strstr(buf, destrootdir))
break;
p = strstr(buf, "=>");
p = strchr(buf, '/');
if (!p)
p = buf;
p = strchr(p, '/');
if (p) {
char *q;
-