Re: [PATCH] src/remove.c: cache_fstatat() broken on systems with negative errnos

2008-03-21 Thread Jim Meyering
Ingo Weinhold <[EMAIL PROTECTED]> wrote: > on systems with negative errno values (BeOS, Haiku) the method used in the > cache_fstatat() function in src/remove.c is broken (st_size will become > positive on error). The attached patch changes the function to use the > st_ino field to store the errno

[PATCH] src/remove.c: cache_fstatat() broken on systems with negative errnos

2008-03-21 Thread Ingo Weinhold
Howdy, on systems with negative errno values (BeOS, Haiku) the method used in the cache_fstatat() function in src/remove.c is broken (st_size will become positive on error). The attached patch changes the function to use the st_ino field to store the errno value instead, which should work on al