bug-coreutils
[Top][All Lists]
Advanced

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

Re: coreutils-6.3: c89 patch insufficent


From: Jim Meyering
Subject: Re: coreutils-6.3: c89 patch insufficent
Date: Thu, 12 Oct 2006 13:17:05 +0200

Paul Eggert <address@hidden> wrote:
> Thanks for reporting that.  In looking at the code, I found
> some other problems (notably, errno was sometimes mishandled)
> and installed the following more-general patch into gnulib.
>
> 2006-10-11  Paul Eggert  <address@hidden>
>
>       * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
>       (has_trailing_slash): Omit size arg; all callers changed.
>       Omit 'inline', since it doesn't help performance and we'd
>       need to configure it.
>       Don't count //, ///, etc. as having a trailing slash.
>       As a side effect, this removes a C99ism reported by Matthew Woehlke.
>       (rpl_rename_dest_slash): On failure, use rename's errno rather
>       than (in some cases) an incorrect or junk errno.
>       Simplify code by removing need to compute length; this does
>       cause it to make two passes instead of one over the file name,
>       but it's worth it.

Thanks for catching that.




reply via email to

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