Re: [Findutils-patches] [PATCH] find: handle more readdir(3) errors

2016-11-01 Thread Eric Blake
On 11/01/2016 04:32 PM, Bernhard Voelker wrote: > >> However, > >>> +++ b/lib/fdleak.c > >>> - while ((dent=readdir (dir)) != NULL) - { + while (1) + >>> { + errno = 0; > > __^^ Uggh. Mail clients botched the formatting. > >>> + dent = readdir (

Re: [Findutils-patches] [PATCH] find: handle more readdir(3) errors

2016-11-01 Thread Bernhard Voelker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/01/2016 09:06 PM, Eric Blake wrote: > On 11/01/2016 02:37 PM, Bernhard Voelker wrote: >> Similar to the FTS readdir fix in v4.6.0-72-g155c9d1, handle the last two >> unhandled readdir(3) errors. >> >> * find/pred.c (pred_empty): Do the above. *

Re: [Findutils-patches] [PATCH] find: handle more readdir(3) errors

2016-11-01 Thread Eric Blake
On 11/01/2016 02:37 PM, Bernhard Voelker wrote: > Similar to the FTS readdir fix in v4.6.0-72-g155c9d1, handle the last > two unhandled readdir(3) errors. > > * find/pred.c (pred_empty): Do the above. > * lib/fdleak.c (get_proc_max_fd): Likewise. While at it, fix the > condition to only skip "."