[tex-k] Re: Problem with kpathsea (in latest web2c 7.3.9)

Olaf Weber olaf@infovore.xs4all.nl
24 Oct 2002 22:15:21 +0200


Thomas Esser writes:

>> How urgent is it to fix this -- assuming it is (reasonably) fixable.
> How about the following:

> --- progname.c-orig	Thu Oct 24 21:14:23 2002
> +++ progname.c	Thu Oct 24 21:29:06 2002
> @@ -304,7 +304,7 @@
>            if (IS_DIR_SEP (ret[last - 1])) {
>              /* If we have `/../', that's the same as `/'.  */
>              if (last > 1) {
> -              ret[last] = 0;
> +              ret[last - 1] = 0;
>              }
>              break;
>            }

It improves matters, though there is still at least one case that the
code doesn't handle correctly (example /foo/../bar).

-- 
Olaf Weber

               (This space left blank for technical reasons.)