[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: promised statfs patch
> GF> "./foo/../bar/./../bar/baz" ==> "bar/baz"
> GF> "/foo/../../bar" ==> Return an error, impossible.
> GF>
> GF>This is a nice programming task. You'll have fun with it. ;-)
>
> It might be a good idea to write a general function for normalizing
> pathnames and either include it into unx2dos/dos2unx or call it in every
> library function right before the GEMDOS gets called.
It would be a good idea to write a general function for resolving
pathnames, i.e. to replace stuff like ../../foo/bar with an absolute
path. That would be useful to implement chroot() in mintlibs (sort of
such pathname resolver I've added to the mint ftp server).
--
Konrad M.Kokoszkiewicz
|mail: draco@mi.com.pl | Atari Falcon030/TT030/65XE |
|http://www.orient.uw.edu.pl/~conradus/ | ** FreeMiNT development ** |
** Ea natura multitudinis est,
** aut servit humiliter, aut superbe dominatur (Liv. XXIV,25)
*************************************************************
** U pospolstwa normalne jest, ze albo sluzy ono unizenie,
** albo bezczelnie sie panoszy.