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

Re: promised statfs patch



On 18 May 1998 11:24:34 +0200, Andreas Schwab wrote:

AS>|> Actually, the chdir("./") could probably be safely omitted (could
AS>|> really be?).
AS>
AS>chdir(".") can fail: the current directory may been deleted (but MiNT does
AS>not support that) or 'x' permission may have been removed.

OK, so what do you think about this kludge:

if (__mint == 0 && strcmp(path, "./") == 0)
    return 0;

I.e. ignore chdir("current_dir") only if not MiNT.

Petr
--
E-mail: stehlik@cas3.zlin.vutbr.cz                        PARCP developer
   WWW: http://cas3.zlin.vutbr.cz/~stehlik/              MiNTOS/Linux user
mirror: http://users.zln.cz/~pstehlik/                 Atari 800XL emulation
mirror: http://www.stehlik.cyberstrider.org/              Atari Falcon040