bug-findutils
[Top][All Lists]
Advanced

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

Re: "find: '/usr/...': Too many open files" when using -execdir


From: Bernhard Voelker
Subject: Re: "find: '/usr/...': Too many open files" when using -execdir
Date: Sun, 4 Jun 2017 12:58:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0

On 06/03/2017 04:18 PM, Kamil Dudka wrote:
> I believe it is fixed by the following upstream commit, which includes also 
> indentation changes, unfortunately:
> 
>     http://git.savannah.gnu.org/cgit/findutils.git/commit/?id=183115d0

Sorry for the squashed-in indent changes ...

> Here you can find the actual fix extracted from the above commit:
> 
>     https://bugzilla.redhat.com/1223557#c2

The --ignore-all-space option confirms:

  $ GIT_PAGER= git diff -w 183115d0^..183115d0 -- find/exec.c
  diff --git a/find/exec.c b/find/exec.c
  index aa69fe3..a191d36 100644
  --- a/find/exec.c
  +++ b/find/exec.c
  @@ -213,6 +213,8 @@ impl_pred_exec (const char *pathname,
           {
             result = false;
           }
  +      if (local)
  +        free_cwd (execp->wd_for_exec);
       }
     if (buf)
       {

> ... and this seems to be the related upstream bug report:
> 
>     https://savannah.gnu.org/bugs/?34976

yes, it is.

Have a nice day,
Berny



reply via email to

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