[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] fix bugs in run_in_dir ()
From: |
Kamil Dudka |
Subject: |
Re: [PATCH] fix bugs in run_in_dir () |
Date: |
Thu, 6 May 2010 22:46:44 +0200 |
User-agent: |
KMail/1.9.10 |
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
- [PATCH] fix bugs in run_in_dir (), Kamil Dudka, 2010/05/06
- Re: [PATCH] fix bugs in run_in_dir (),
Kamil Dudka <=
- Re: [PATCH] fix bugs in run_in_dir (), James Youngman, 2010/05/07
- Re: [PATCH] fix bugs in run_in_dir (), Kamil Dudka, 2010/05/07
- backport of patches for upstream bugs #19593 and #27563, Kamil Dudka, 2010/05/10
- Re: backport of patches for upstream bugs #19593 and #27563, James Youngman, 2010/05/17
- Re: backport of patches for upstream bugs #19593 and #27563, Kamil Dudka, 2010/05/17
- Re: backport of patches for upstream bugs #19593 and #27563, James Youngman, 2010/05/17