bug-gnulib
[Top][All Lists]
Advanced

[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: Jim Meyering
Subject: Re: [bug-gnulib] Re: robust chdir and openat (works with names longer than PATH_MAX)
Date: Mon, 29 Nov 2004 16:29:11 +0100

>> 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.

Yes, of course, but that can use far more memory (and does more copying)
than necessary e.g., in the extreme case where the directory name is much
longer than PATH_MAX.  I do know that making the code simpler is sometimes
worth incurring a performance hit.

Don't worry :-)  I'll fix it, one way or another.




reply via email to

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