bug#50167: fixes for "fmt - -" etc.

2021-08-25 Thread Jim Meyering
On Wed, Aug 25, 2021, 4:37 PM Bernhard Voelker wrote: > On 8/25/21 10:38 AM, Jim Meyering wrote: > > * cfg.mk (exclude_file_name_regexp--sc_system_h_headers): > > Add find-mount-point.h to the regexp. > > +1 > even better, thanks. > Thanks. Pushed. >

bug#50167: fixes for "fmt - -" etc.

2021-08-25 Thread Bernhard Voelker
On 8/25/21 10:38 AM, Jim Meyering wrote: > * cfg.mk (exclude_file_name_regexp--sc_system_h_headers): > Add find-mount-point.h to the regexp. +1 even better, thanks. Have a nice day, Berny

bug#50167: fixes for "fmt - -" etc.

2021-08-25 Thread Jim Meyering
On Tue, Aug 24, 2021 at 11:10 PM Paul Eggert wrote: > On 8/24/21 12:42 PM, Bernhard Voelker wrote: > > Was there a particular reason to include stdlib.h? > > It's needed to declare 'free', which is used by _GL_ATTRIBUTE_DEALLOC_FREE. > > I added "#include " so that find-mount-point.h would be an

bug#50167: fixes for "fmt - -" etc.

2021-08-24 Thread Paul Eggert
On 8/24/21 12:42 PM, Bernhard Voelker wrote: Was there a particular reason to include stdlib.h? It's needed to declare 'free', which is used by _GL_ATTRIBUTE_DEALLOC_FREE. I added "#include " so that find-mount-point.h would be an independent header, potentially useful outside coreutils. If

bug#50167: fixes for "fmt - -" etc.

2021-08-24 Thread Bernhard Voelker
Hi Paul, On 8/22/21 10:12 PM, Paul Eggert wrote: > Subject: [PATCH 4/4] df: pacify -Wsuggest-attribute=malloc > > Problem found with latest Gnulib and GCC 11.2.1. > * src/find-mount-point.h (find_mount_point): > Add _GL_ATTRIBUTE_MALLOC and _GL_ATTRIBUTE_DEALLOC_FREE. > --- > src/find-mount-point

bug#50167: fixes for "fmt - -" etc.

2021-08-22 Thread Paul Eggert
After finding a similar problem in GNU grep, I audited coreutils for issues involving reading stdin twice, or neglecting to report read errors, and installed the attached. The 2nd patch does the real work; the rest is merely doc or Gnulib patches. >From b6a0654e04482f400eb2d5752ec13e15eb53743c M