Hello Elliot, On 10/3/18 10:00 PM, enh wrote: > This doesn't actually matter on any C library I know of --- they all > just do a NULL check and forward to fclose(3). (The actual mistake I > saw was someone not realizing that they had to call *anything*.) Thanks! Patch applied. Cheers, Michael > --- > man3/getmntent.3 | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/man3/getmntent.3 b/man3/getmntent.3 > index 8f3f2686a..6ccc26b5f 100644 > --- a/man3/getmntent.3 > +++ b/man3/getmntent.3 > @@ -84,6 +84,10 @@ required and can take the same values as the > .I mode > argument of > .BR fopen (3). > +The returned stream should be closed using > +.BR endmntent () > +rather than > +.BR fclose (3). > .PP > The > .BR getmntent () > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/