[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] Re: robust chdir and openat (works with names longer th
From: |
Stepan Kasal |
Subject: |
Re: [bug-gnulib] Re: robust chdir and openat (works with names longer than PATH_MAX) |
Date: |
Mon, 29 Nov 2004 15:55:36 +0100 |
User-agent: |
Mutt/1.4.1i |
Hi,
On Mon, Nov 29, 2004 at 03:29:40PM +0100, Jim Meyering wrote:
> Paul Eggert <address@hidden> wrote:
> > After looking at rpl_chdir's code, one possible simplification
> > suggests itself: use an argument of type "char *" (not "char const
> > *"), and temporarily modify it by setting '/' to '\0'.
>
> IMHO, it is bad practice to modify such parameters, even temporarily,
OK, if you don't want the modify the real parameter, you can copy it, and
then freely modify the copy.
(I have to admit I haven't read your code, so I hope this advice is not
too silly... ;-)
Regards,
Stepan