On Thursday 06 of May 2010 15:03:32 Kamil Dudka wrote:
> Hello,
>
> attached is a patch fixing bugs of run_in_dir () which I encountered while
> doing backport of #19593 for stable findutils.  Thanks in advance for
> considering the patch!

Folow-up:

diff --git a/lib/dircallback.c b/lib/dircallback.c
index 9d77710..f96fccc 100644
--- a/lib/dircallback.c
+++ b/lib/dircallback.c
@@ -57,7 +57,8 @@ int
 run_in_dir (const struct saved_cwd *there,
            int (*callback)(void*), void *usercontext)
 {
-  int err = -1, saved_errno;
+  int err = -1;
+  int saved_errno = 0;
   struct saved_cwd here;
   if (0 == save_cwd (&here))
     {

> Kamil


Reply via email to