realpath, canonicalize_file_name and GLib



Hello, 

	The libgnomeui is using the POSIX realpath() function. This
function has a major flaw: it is totally unable to handle systems with
unlimited maximal path size, like GNU/Hurd. As this has been
recognized as a major flaw in the design of realpath by the POSIX guys
itself, it has been corrected in the latest drafts. Though, as it is
new, we cannot rely on that if Gnome wants portability.

        For this purpose, there is a GNU extension in the C library
(canonicalize_file_name) that allocates dynamically a buffer big enough
to handle the result. 

        It is impossible to port Gnome to any system with unlimited path
size without using this function, so I think that it should be added to
the GLib, like it was done for g_strdup_printf and many other GNU extension
to the C library. Of course, I guess the best way to do it is to grab the code
from the GNU C library.

What do you all think of that ?

-- 
Gael Le Mignot "Kilobug" - kilobug@freesurf.fr - http://kilobug.free.fr
GSM         : 06.71.47.18.22 (in France)   ICQ UIN   : 7299959
Fingerprint : 1F2C 9804 7505 79DF 95E6 7323 B66B F67B 7103 C5DA

Member of HurdFr: http://hurdfr.org - The GNU Hurd: http://hurd.gnu.org



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