httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: function for canonicalizing path names?
Date Thu, 08 Mar 2007 18:46:46 GMT
It would probably merit extending apr_filepath_merge's API to add a
resolve symlinks flag (NT junctions, etc) in a platform agnostic way.

Bill

Dr. Peter Poeml wrote:
> On Thu, Mar 08, 2007 at 10:53:05AM +0100, Dr. Peter Poeml wrote:
>> Hello,
>>
>> is there a function in apache or apr to canonicalize pathnames (resolve
>> a path with symlinks to the "real" path on disk)?
>>
>> I couldn't find one so far. 
>>
>> I looked at r->canonical_filename, but it contained the same path as
>> r->filename, and doesn't have symlinks resolved.
> 
> I was pointed to glibc's realpath() / canonicalize_file_name() now.
> Never mind :)
> 
> Regards,
> Peter


Mime
View raw message