bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnulib] canonicalize.c and realpath


From: Dmitry V. Levin
Subject: Re: [bug-gnulib] canonicalize.c and realpath
Date: Mon, 4 Apr 2005 20:41:14 +0400

On Mon, Apr 04, 2005 at 02:48:02PM +0000, Eric Blake wrote:
> Currently, lib/canonicalize.c performs a configure check to see if 
> resolvepath(2) is exported, to speed up canonicalize_file_name.  This is not 
> a POSIX function, and meanwhile POSIX XSI requires realpath(2) to exist 
> (basically, resolvepath without the length argument).  Some systems, like 
> cygwin, have realpath but not resolvepath, but gnulib is not even checking 
> for realpath.  Also, some implementations of realpath malloc memory if the 
> destination is NULL, similar to getcwd.  I don't have copyright assignment 
> yet, or I would propose a patch to canonicalize to support realpath.  Should 
> we also add a realpath module to provide realpath on systems that don't have 
> it?

The problem is that various realpath(3) implementations differ in behaviour,
so gnulib's canonicalize_file_name() based on realpath(3) may work
differently on various platforms which is probably not what you want.

P.S. You mean realpath(3) not realpath(2), right?


-- 
ldv

Attachment: pgp0cYsCOARO5.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]