You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Erik Sjölund <er...@home.se> on 2002/11/28 16:12:32 UTC

apr-config.in bug + fix

I had some problems with apr-config giving back a false path. This happend 
because apr-config was invoked under a path name with sym links.

Looking into that script I saw a line trying to filter out any symlinks
of a path.

thisdir="`cd $thisdir && pwd`"

The problem is the pwd.
In bash the built-in pwd doesn't give the physical path ( you can with option 
-P )

/bin/pwd is probably a better choice.

The attached patch seems to fix the problem.

cheers,
Erik Sjölund