Paul Eggert <[EMAIL PROTECTED]> 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  <[EMAIL PROTECTED]>
>
>       * 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.


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to