2021-01-09  Bernhard Voelker  <mail@bernhard-voelker.de>

	build: fix linking on AIX7.2
	Linking on AIX7.2 fails:
	  ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock
	  ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock

	Bruno Haible noticed that $(LIB_MBRTOWC) and $(LIB_SETLOCALE_NULL)
	expand to -lpthread on that platform, so let's add them to LDADD.

	Maybe we should better depend on a 'gnulib.mk' file generated by
	'gnulib-import' in the long run, but let's fix this issue with the
	simpler solution for now.

	* find/Makefile.am (LDADD): Add $(LIB_SETLOCALE_NULL) and $(LIB_MBRTOWC).
	* locate/Makefile.am (LDADD): Likewise.
	* xargs/Makefile.am (LDADD): Likewise.
	* lib/Makefile.am (regexprops_LDADD): Add definition.

2021-01-09  Bernhard Voelker  <mail@bernhard-voelker.de>

	NEWS: update before release
	* NEWS: Prepare for the 4.8.0 release: minor re-ordering, and update
	entries with bug numbers.

	maint: fix GCC format attribute of checked_fprintf
	* gnulib-local/lib/gcc-function-attributes.h: Rename
	_GL_ATTRIBUTE_FORMAT_PRINTF to _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD
	following gnulib's change:
	https://git.sv.gnu.org/cgit/gnulib.git/commit/?id=387d654c
	* find/print.c (checked_fprintf): Use it.

2021-01-09  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: update gnulib to latest
	Run 'make update-gnulib-to-latest'.  Let's use this latest version
	for the imminent 4.8.0 release.

	* bootstrap: Sync from gnulib/build-aux/bootstrap.
	* gnulib: Update to latest.

2021-01-07  Andreas Metzler  <ametzler@bebt.de>
	    Bernhard Voelker  <mail@bernhard-voelker.de>

	xargs: warn on conflicting options -L, -I, -n
	* xargs/xargs.c (warn_mutually_exclusive): Add function to output the
	new warning diagnostic.
	(main): Call the above new function in order to show a warning message
	if conflicting options (-L -l -I -i -n) are specified.
	* xargs/xargs.1: Explicitly document the fact that -L -l -I -i -n
	options are mutually exclusive and how xargs behaves when more than one
	of these options are specified.
	* doc/find.texi (node Conflicting xargs options): Likewise, add this
	section with examples.
	* xargs/testsuite/config/unix.exp (xargs_start): Replace the full path
	of the xargs executable in the stderr output file by its basename.
	* xargs/testsuite/xargs.gnu/P3-n1-IARG.xe: Add file containing the
	expected output with the new warning diagnostic.
	* xargs/testsuite/xargs.posix/L2-n2.xe: Likewise.
	* xargs/testsuite/xargs.posix/rc-123.xe: Likewise.
	* xargs/testsuite/xargs.sysv/l1n4.xe: Likewise.
	* xargs/testsuite/xargs/testsuite/xargs.gnu/P3-n1-IARG.exp: Ensure the
	error diagnostic is in C locale to avoid false positives in other locales.
	* xargs/testsuite/xargs.posix/L2-n2.exp: Likewise.
	* xargs/testsuite/xargs.posix/rc-123.exp: Likewise.
	* xargs/testsuite/xargs.sysv/l1n4.exp: Likewise.
	* tests/xargs/conflicting_opts.sh: Add test coverage for combinations
	of the mutually exclusive options -I -L and -n.
	* xargs/testsuite/Makefile.am (EXTRA_DIST_EXP): Reference the new tests.
	(EXTRA_DIST_XO): Reference the new *.xo files.
	(EXTRA_DIST_XE): Reference the new *.xe files.
	* NEWS (Improvements): Mention the change.


	Discussed at https://savannah.gnu.org/bugs/?52137
	Duplicate of https://savannah.gnu.org/bugs/?58156

2021-01-07  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: avoid warning for printing pid_t on Solaris 11
	The type pid_t is defined as long on Solaris 11.  Therefore, GCC
	issued a -Wformat warning there when attempting to print as %d.

	* find/exec.c: (launch): When writing the debug message, treat child_pid
	as the wider long type.

2021-01-07  Bernhard Voelker  <mail@bernhard-voelker.de>

	tests: avoid FP on Solaris 11
	'ls -i' outputs leading blanks before the inode number on Solaris 11.
	The 'exp' reference file should not contain them.

	* tests/find/printf_inode.sh (make_canonical): Strip off leading
	blanks.

2021-01-07  Bernhard Voelker  <mail@bernhard-voelker.de>

	doc: avoid overfull \hbox issues in find.texi
	"Overfull \hbox" results lines exceeding the page width, and therefore
	may not even be readable.  At least they are ugly.

	* doc/find.texi (node O_NOFOLLOW): Break long example lines into
	the next lines.  While at it, update the version in that example to
	4.8.0 (in good faith we'll have it in 2021), because we shouldn't
	have a "*-git" version there.

2021-01-05  Bernhard Voelker  <mail@bernhard-voelker.de>

	pred.c: remove unused code
	* find/pred.c (struct pred_assoc): Remove.
	(pred_table): Remove.

2021-01-05  Bernhard Voelker  <mail@bernhard-voelker.de>

	xargs: mention in --help that -I splits input at newlines
	* xargs/xargs.c (usage): Amend the -I description to mention that
	the input is split at newlines.
	* NEWS: Mention the change.

	Fixes https://savannah.gnu.org/bugs/?58149

2021-01-04  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: update gnulib to latest
	Run 'make update-gnulib-to-latest', mainly for these two commits:

	  > free-posix: Work around GCC mis-optimization bug.
	  > getgroups test: Avoid warning with glibc >= 2.32 and gcc >= 10.

	* gnulib: Update to latest.

2021-01-04  Bernhard Voelker  <mail@bernhard-voelker.de>

	tests/find/used.sh: make more robust
	This test was prone to false-positive errors due to sub-second rounding
	issues.  Failures have been seen on openSUSE's build system.

	* tests/find/used.sh: Use larger time intervals for the future access
	times of the test files (compared to the '-used N' search), and adjust
	the expected output accordingly.

2021-01-02  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: update gnulib to latest
	Run 'make update-gnulib-to-latest', mainly to update the copyright
	year numbers with:

	  > maint: run 'make update-copyright'

	* bootstrap: Sync from gnulib/build-aux/bootstrap.
	* gnulib: Update to latest.
	* tests/init.sh: Sync from 'gnulib/tests/init.sh'.

2021-01-02  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: update copyright year number ranges
	Run 'make update-copyright'.

	* lib/regexprops.c (copying): Update the year number manually.
	The format of the copyright year number range in Texinfo files is
	"YEAR1--YEAR2" now, i.e., with 2x '-'.
	* tests/sample-test: Likewise, here to avoid starting a year number range.
	* All other files: Update copyright years via the above make run.

2021-01-02  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: exempt 'doc/fdl.texi' from 'make update-copyright'
	This file is a copy from gnulib and therefore should not get changed
	by the yearly update.

	* .x-update-copyright: Add pattern for that file.

2020-12-30  Bernhard Voelker  <mail@bernhard-voelker.de>

	NEWS: mention the recent documentation changes
	* NEWS (Documentation Changes): Document the changes of the previous
	couple of man page and Texinfo manual changes.

2020-12-30  Bernhard Voelker  <mail@bernhard-voelker.de>

	find.1: remove vague mentioning of "Finding Files" from BUGS section
	The user probably doesn't know that the reference to "Finding Files"
	means to consult the Texinfo manual.  It seems to be sufficient to
	note that -exec is more insecure than -execdir, so remove the reference,

	* find/find.1 (.SH BUGS): Remove reference as described above.
	While at it, remove the empty .P and the end of the section.

2020-12-30  Andreas Metzler  <ametzler@bebt.de>

	find.1: fix various other issues
	Namely:
	- When referencing C system or library functions, refer to their
	  man pages.
	- Avoid oddly boldfaced ',' after a filename value.
	- Remove superfluous ',' in the description of %h.
	- Avoid extra space before comme after a boldfaced value.

	* find/find.1: Do the above.

	Reported by Helge Kreutzmann in
	https://savannah.gnu.org/bugs/?59745

2020-12-30  Bernhard Voelker  <mail@bernhard-voelker.de>

	find.1: avoid confusing brackets a sentence
	Two side notes in brackets in one sentence are disturbing the
	reading flow.

	* find/find.1 ("-exec command {} +"): Avoid having two bracketed side
	notes in one sentence; borrow the better description from the Texinfo
	manual.

	Reported by Helge Kreutzmann in
	https://savannah.gnu.org/bugs/?59745

2020-12-30  Bernhard Voelker  <mail@bernhard-voelker.de>

	doc: minor grammar change about a change in the past
	In the description of -name patterns matching "hidden" files, i.e.,
	those beginning with a dot, avoid talking in the future.
	The change was back in version 4.2.2.
	Maybe we should drop this hint about historic behavior at all.

	* doc/find.texi (Base Name Patterns): Remove the word "will".
	* find/find.1 (.SH STANDARDS CONFORMANCE): Likewise.
	(.SH HISTORY): Likewise.

2020-12-30  Bernhard Voelker  <mail@bernhard-voelker.de>

	find.1: improve formatting of EXAMPLES section
	The EXAMPLES sesction was hard to read because it was not clear to
	which sentence a sample command belonged.  Use '.SS' and '.IP' markup,
	and also indent the sample commands nicer.
	Furthermore, change the formatting of file names as italice consistently.
	Avoid empty lines, by either explicitly marking as empty via '.', or
	by adding the invisible zero-width character '\&'.

	* find/find.1 (.SH EXAMPLES): Do the above.

2020-12-30  Bernhard Voelker  <mail@bernhard-voelker.de>

	find.1: fix and improve some more markups
	Mark whitespace in commands as non-breakable in more cases to avoid
	unwanted hyphenation in the middle of commands.  For this to work,
	some cases need to have some consecutive lines joined into one '.B'
	or '.BR', the latter may require quoting the first argument within "...".

	* find/find.1: Do the above.
	(.IP -path): Improve indentation using '.in +4m', and set filename
	as italic.
	(.BR "ls -l"): Escape the minus of the option.
	(.BR "\-size\ \-1\|048\|576c"): Add space before dot '.', the 2nd arg.
	(.B \-exec ... \e+): No need to escape '+': remove '\e'.
	(.B \-execdir ... \e+): Likewise.
	(POSIXLY_CORRECT): Set the strings '+zzz' and '/zzz' in the -perm
	description as italic.

2020-12-30  Bernhard Voelker  <mail@bernhard-voelker.de>

	find.1: set filenames in italics
	man-pages(7) says:
	  Filenames [...] are always in italics, except in the SYNOPSIS
	  section, [...]

	Set filenames in italics, respectively change from boldface to italics.
	While at it, mark whitespaces in commands as non-breakable via '\ '
	to avoid unwanted hyphenation in the middle of commands.

	* find/find.1 (-regex): Do the above.
	(-exec,-execdir,-fprint): Likewise.

2020-12-30  Bernhard Voelker  <mail@bernhard-voelker.de>

	doc: avoid starting sentences with an option
	A sentence starting with an option looks odd:
	  "... starting-points.  -maxdepth 0 means only apply ..."

	* doc/find.texi (-maxdepth): Add "Using " to avoid having an option
	at the start of the sentence.
	(-mindepth): Likewise.
	* find/find.1: Likewise.
	While at it, mark the whitespace as non-breakable via '\ '.

	Reported by Helge Kreutzmann in
	https://savannah.gnu.org/bugs/?59745

2020-12-30  Bernhard Voelker  <mail@bernhard-voelker.de>

	locate.1: improve formatting in BUGS section
	* locate/locate.1 (.SH "BUGS"): Set 'locate' in bold, and the -z option
	in italic.

2020-12-30  Bernhard Voelker  <mail@bernhard-voelker.de>

	doc: harmonize the end of the man pages
	The "BUGS" section also documented how to report bugs.  This is better
	done in a separate "REPORTING BUGS" section.  Add this section where
	missing.  In it, redirect the user to the "How to get help" section
	("#get-help") of the GNU findutils online page; also mention where
	to report translation issues.

	Bring the sections "SEE ALSO" and "COPYRIGHT" into the correct order,
	which is: "REPORTING BUGS", "COPYRIGHT" and finally "SEE ALSO".
	See 'man-pages(7)'.

	The "SEE ALSO" section now refers to both the corresponding node in
	the online HTML version of the Texinfo manual and lists the 'info' command.
	Sort the entries referring to other man pages: first by their manual
	section numbers, then alphabetically.

	While at it, add an empty line (directive '.') before all '.SH' section
	headers.

	* find/find.1: Do the above.
	* locate/locate.1: Likewise.
	* locate/locatedb.5: Likewise.
	* locate/updatedb.1: Likewise.
	* xargs/xargs.1: Likewise.

2020-12-30  Bernhard Voelker  <mail@bernhard-voelker.de>

	updatedb.1: avoid Texinfo macro in man page
	* locate/updatedb.1 (DESCRIPTION): Replace @samp{} macro by .B setting,
	introduced in commit v4.6.0-44-g89ec0211.

2020-12-30  Bernhard Voelker  <mail@bernhard-voelker.de>

	xargs.1: remove deprecated .PD macro
	Use of the .PD macro is discouraged, see:
	https://man7.org/linux/man-pages/man7/groff_man_style.7.html

	* xargs/xargs.1 (.SH OPTIONS): Remove all uses of the .PD macro.

2020-12-30  Bernhard Voelker  <mail@bernhard-voelker.de>

	xargs.1: improve indentation of list of exit statuses
	* xargs/xargs.1 (EXIT STATUS): Use .RS + .IP + .RE to get a nicer
	indentation of the list of exit values.

2020-12-02  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: use gnulib *_safer functions consistently
	Avoid using fopen_safer and opendir_safer directly in favor of
	letting gnulib transparently doing the work via "dirent--.h" and
	"stdio--.h".

	* find/oldfind.c (dirent-safer.h): Replace include ...
	(dirent--.h): ... by this.
	(process_dir): Change opendir_safer to the regular opendir call.
	* find/sharefile.c (stdio-safer.h): Replace include ...
	(stdio--.h): ... by this.
	(sharefile_fopen): Change fopen_safer to regular fopen call.
	* lib/fdleak.c (dirent-safer.h): Replace include ...
	(dirent--.h): ... by this.
	(get_proc_max_fd): Change opendir_safer to regular opendir call.

2020-12-02  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: use more *-safer gnulib modules
	See section "Handling closed standard file descriptors" in the gnulib
	manual.

	* bootstrip.conf (gnulib_modules): Add fcntl-safer, openat-safer
	and unistd-safer.
	* find/exec.c: Include "fcntl--.h" to use the *-safer variant of open()
	or openat().
	* find/pred.c: Likewise.
	* locate/locate.c: Likewise.
	* xargs/xargs.c: Likewise, and include "unustd--.h" to use the *-safer
	variant of pipe().

2020-11-22  Bernhard Voelker  <mail@bernhard-voelker.de>

	doc: relate -anewer, -cnewer, and -newer to their -newerXY equivalents
	* doc/find.texi (Comparing Timestamps): Clarify that the above options
	are equivalent to the options -neweram, -newercm and -newermm.

	Suggested by Reuben Thomas.

2020-10-30  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: fix bug URL in ChangeLog entry
	* build-aux/git-log-fix (v4.7.0-15-g6e55ad98): Tweak ChangeLog entry
	for this commit during 'make dist' to reference the bug system on
	Savannah instead of that on debbugs.gnu.org.

	Reported by Axel Beckert in
	    https://sv.gnu.org/bugs/?57291

2020-10-25  Andreas Metzler  <ametzler@bebt.de>

	updatedb.1: fix formatting
	* locate/updatedb.1 (--prunepaths): Use apostrophe instead of acute accent.

	find.1: fix typo "onthe"
	* find/find.1 (-quit): Change to "on the".

2020-10-21  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: update gnulib to latest
	Run 'make update-gnulib-to-latest', mainly for these two commits:
	  > selinux-at, selinux-h: port to SELinux 3.1
	  > parse-datetime: Make the build rule work with parallel 'make'.

	* gnulib: Update to latest.

2020-10-19  Bernhard Voelker  <mail@bernhard-voelker.de>

	build: disable -Wformat-nonliteral
	GCC-10.2.1 complains about format strings it was not able to check:

	  print.c:529:11: warning: format not a string literal, format string not \
	                           checked [-Wformat-nonliteral]
	    529 |           strftime (altbuf, buf_size, timefmt, &altered_time);
	        |           ^~~~~~~~

	* configure.ac (compiler-warnings): Add -Wformat-nonliteral.

2020-10-19  Bernhard Voelker  <mail@bernhard-voelker.de>

	find: avoid deprecation warnings with libselinux 3.1
	Libselinux 3.1 deprecates typedef 'security_context_t', leading to
	several warnings like:

	  defs.h:330:5: warning: ‘security_context_t’ is deprecated [-Wdeprecated-declarations]
	    330 |     security_context_t scontext; /* security context */
	        |     ^~~~~~~~~~~~~~~~~~

	Replace all matches of 'security_context_t' by 'char *'.

	* find/defs.h (struct predicate.args.scontext): Change to 'char *'.
	(x_getfilecon): Adjust type of 3rd parameter.
	* find/parser.c (fallback_getfilecon): Adjust type of 3rd parameter.
	(optionh_getfilecon): Likewise.
	(optionl_getfilecon): Likewise.
	(optionp_getfilecon): Likewise.
	* find/pred.c (pred_context): Adjust type of 'scontext' variable.
	* find/print.c (do_fprintf): Likewise.

2020-10-19  Bernhard Voelker  <mail@bernhard-voelker.de>

	find: add error handling for strdup in the '-print %h' case
	* find/print.c (do_fprintf): Change strdup call to xstrdup to ensure
	proper error handling.  Reported by Infer.

	Fixes https://sv.gnu.org/bugs/?59133

2020-10-07  Kamil Dudka  <kdudka@redhat.com>

	doc: avoid misunderstanding of '-printf %Ak' description
	* find/find.1 (-printf): Make it clear that the list of conversion
	specification characters of '%Ak' is incomplete; refer to the
	strftime() documentation.  While at it, document the F conversion
	character which yields 'yyyy-mm-dd'.
	* doc/find.texi (Time Formats): Likewise.
	* NEWS: Mention the improvement.

	Suggested in https://bugzilla.redhat.com/1882695

2020-09-17  Bernhard Voelker  <mail@bernhard-voelker.de>

	find: improve '-D exec' debug output
	Previously, 'find -D exec' only gave helpful output right before the
	invocation of complete_pending_execdirs, i.e., not for every child
	execution of the -exec, -execdir, -ok and -okdir predicates.
	Make the 'exec' debug output more useful and consistent.

	* find/exec.c (launch): Output DebugExec diagnostics right before spawning
	the child process, and after getting its exit status (unless we already
	have regular error diagnotstic anyway, e.g. if the child has been
	terminated by a signal).
	* find/ftsfind.c (show_outstanding_execdirs): Remove.
	(find): Remove invocation of the above function, and simplify.
	* NEW: Mention the improvement.

	Suggested by Philip Rowlands in https://sv.gnu.org/bugs/?59083

2020-09-17  Bernhard Voelker  <mail@bernhard-voelker.de>

	find.1: use consistent quoting in example
	* find/find.1 (EXAMPLES): Use (aq...(aq consistently around the -exec
	arguments containing the placeholder '{}/...'.

	Suggested in https://sv.gnu.org/bugs/?59012

2020-09-16  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: fix typo in comment
	* find/util.c: s/insure/ensure/

2020-08-14  Bernhard Voelker  <mail@bernhard-voelker.de>

	doc: add examples for -maxdepth, -mindepth
	* doc/find.texi (-maxdepth): Add examples.
	(-mindepth): Reference them.

	Suggested by 積丹尼 Dan Jacobson <jidanni@jidanni.org> in
	https://lists.gnu.org/r/bug-findutils/2020-07/msg00006.html

2020-08-14  Bernhard Voelker  <mail@bernhard-voelker.de>

	doc: clarify that 'find -perm +MODE' is unrelated to umask
	* doc/find.texi (Test -perm pmode): Do the above.
	* NEWS: Mention the change.

	Reported by Mohamed Akram in
	    https://sv.gnu.org/bugs/?58654

2020-08-14  Bernhard Voelker  <mail@bernhard-voelker.de>

	doc: enhance description of tests accepting numeric arguments in find.1
	* find/find.1 (TESTS): Improve the description of tests accepting a
	numeric argument that they match "less than, more than or exactly" the
	given 'n', thus helping the user to remind to use '-n', '+n' or a bare
	'n' (as decribed at the top).
	* doc/find.texi (section find Expressions): Move section from chapter
	"Introduction" to "Finding Files".  The description about the general
	syntax of a find expression fits more naturally there, including the
	already existing part about numeric arguments.
	* NEWS: Mention the change.
	Suggested in https://sv.gnu.org/bugs/?57025 .

2020-08-14  Bernhard Voelker  <mail@bernhard-voelker.de>

	find.1: clarify double dash '--' option
	* find/find.1: Document that the '--' option is not much useful for
	find, because if a path name following that would start with a `-',
	then find would treat it as an expression argument.
	* NEWS: Mention it.

	Reported by Andreas Metzler <ametzler@bebt.de> in
	https://sv.gnu.org/bugs/?58205

2020-08-14  Bernhard Voelker  <mail@bernhard-voelker.de>

	doc: display version of the GNU findutils on the title page
	The first page of the Texinfo documentation should display the package
	version the documentation corresponds to.  Also change the title
	from "Finding Files" to "GNU Findutils ..." to better reflect the
	package name.  These changes align the documentation better with
	that of other GNU packages like e.g. grep.

	* doc/find.texi: Do the above.  Furthermore, display the VERSION also
	in the first sentence after the @direntry list.
	While at it, enclose the FDL licence text in a @quotation block.
	* doc/find-maint.texi: Likewise.

2020-08-14  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: explicitly copy fdl-1.3 from gnulib
	* Makefile.am (update-gnulib-to-latest): Prompted by a probably
	accidental difference between gnulib's fdl.texi and fdl-1.3.texi
	(to be fixed in GNU standards first), change the command to
	explicitly copy version 1.3 of the FDL.
	* doc/fdl.texi: Update from 'gnulib/doc/fdl-1.3.texi'.

	See https://lists.gnu.org/r/bug-standards/2020-08/msg00000.html
	and https://lists.gnu.org/r/bug-gnulib/2020-07/msg00185.html

2020-08-13  Bernhard Voelker  <mail@bernhard-voelker.de>

	doc: change "allows to <verb>" to "allows <verb>ing"
	* doc/find.texi: Use gerund after "allows".
	As a side effect, this also avoids passive voice in some cases;
	active voice is usually clearer.

	maint: fix typo in comment
	* find/ftsfind.c (inside_dir): s/currentl/currently/

	doc: modernize example list of filesystem types for -fstype
	* doc/find.texi (-fstype): Mention more common types.

2020-07-20  Bernhard Voelker  <mail@bernhard-voelker.de>

	doc: remove fts from configuration chapter
	The corresponding configure option was removed with commit 42a28b0dfb.

	* doc/find.texi (node fts): Remove section.

2020-06-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>

	doc: fix warnings from "mandoc -Tlint" in man pages
	mandoc: ./find/find.1:313:2: WARNING: skipping paragraph macro: PP empty
	mandoc: ./find/find.1:607:1: WARNING: skipping paragraph macro: sp after PP
	mandoc: ./find/find.1:606:2: WARNING: skipping paragraph macro: PP empty
	mandoc: ./find/find.1:1678:2: WARNING: skipping paragraph macro: PP after SS
	mandoc: ./find/find.1:2063:2: STYLE: fill mode already enabled, skipping: fi
	mandoc: ./find/find.1:2302:2: WARNING: skipping paragraph macro: PP after SH
	mandoc: ./find/find.1:2400:2: WARNING: skipping paragraph macro: PP empty
	mandoc: ./find/find.1:2455:2: WARNING: skipping paragraph macro: PP after SH
	mandoc: ./locate/locate.1:282:2: WARNING: skipping paragraph macro: PP after SH
	mandoc: ./locate/locatedb.5:153:2: WARNING: skipping paragraph macro: PP after SH
	mandoc: ./locate/updatedb.1:128:2: WARNING: skipping paragraph macro: PP after SH
	mandoc: ./xargs/xargs.1:316:2: STYLE: fill mode already enabled, skipping: fi
	mandoc: ./xargs/xargs.1:327:2: STYLE: fill mode already enabled, skipping: fi

	* find/find.1: Remove superfluous paragraph macros.
	Remove superfluous requests ".fi".
	* locate/locate.1: Likewise.
	* locate/locatedb.5: Likewise.
	* locate/updatedb.1: Likewise.
	* xargs/xargs.1: Likewise.

2020-06-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>

	doc: fix warnings from "test-groff" in man pages
	Output is from: test-groff -b -mandoc -T utf8 -rF0 -t -w w -z

	  [ "test-groff" is a developmental version of "groff" ]
	  Input file is ././find/find.1
	  <./find/find.1>:365 (macro BR): only 1 argument, but more are expected
	  <./find/find.1>:380 (macro BR): only 1 argument, but more are expected
	  <./find/find.1>:1494 (macro BR): only 1 argument, but more are expected
	  <./find/find.1>:1496 (macro BR): only 1 argument, but more are expected
	  <./find/find.1>:1513 (macro BR): only 1 argument, but more are expected
	  [...]
	  Input file is ././locate/locate.1
	  troff: <./locate/locate.1>:167: warning: trailing space

	* find/find.1: Use a one-font (single letter) macro for a single argument.
	* locate/locate.1: Remove a trailing space in a "string".

2020-06-21  Bernhard Voelker  <mail@bernhard-voelker.de>

	doc: improve section 'Hard links' and fix 'find -L -samefile' description
	* doc/find.texi (Hard links): Clarify that 'find -L -samefile FILE'
	returns both hard links and symbolic links to FILE, and why.
	Further attempt to improve the wording of the whole section by
	avoiding wording like "you can ...", and instead describing more
	how find works and behaves for the -samefile, -inum and -links
	options.  Especially mention that -inum potentially returns files
	with the given inode number but yet are no hard links per definition:
	this happens if they are on a different file system, i.e., if they
	have a different device number.

	Fixes https://sv.gnu.org/bugs/?58458

2020-05-25  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: copy FDL from gnulib instead of using it as module
	Since the previous gnulib update, bootstrap outputs this warning:

	  Notice from module fdl:
	    Don't use this module! Instead, copy the referenced license file \
	    into your version control repository.

	See gnulib commit:
	  https://git.sv.gnu.org/cgit/gnulib.git/commit/?id=88fc5afbccc9

	* bootstrap.conf (gnulib_modules): Remove 'fdl'.
	* doc/fdl.texi: Add file as a copy of 'gnulib/doc/fdl.texi'.
	* doc/.gitignore (/fdl.texi): Remove to no longer ignore that file.
	* Makefile.am (update-gnulib-to-latest): Add command to sync the file.
	While at it, add the command to show the git status for
	'tests/init.sh' as well.

2020-05-25  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: update gnulib to latest
	Run 'make update-gnulib-to-latest', mainly for some performance
	improvement for FTS with -L:

	  > Tune fts for FTS_LOGICAL+FTS_NOSTAT

	* gnulib: Update to latest.

2020-05-23  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: fix typo in comment
	* find/tree.c (do_arm_swaps): s/evauating/evaluating/.

2020-04-22  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: bootstrap gnulib with --symlink
	* bootstrap.conf (gnulib_tool_option_extras): Add --symlink option.

2020-04-22  Bernhard Voelker  <mail@bernhard-voelker.de>

	find: fix -used predicate
	* find/pred.c (pred_used): Reverse the check for the delta between
	the atime and ctime of the file to accomodate to how pred_timewindow
	is working.
	Also return false if atime < ctime.
	Bug introduced in FINDUTILS_4_3_3-1 in commit a4718831e17.
	* tests/find/used.sh: Add test.
	* tests/local.mk (all_tests): Reference the test.
	* NEWS (Bug Fixes): Mention the fix.

	Reported by Martin Schulte in
	<https://lists.gnu.org/r/bug-findutils/2019-11/msg00010.html>

2020-04-19  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: update gnulib to latest, to avoid FTS crash on XFS
	Run 'make update-gnulib-to-latest', mainly to pull in a fix for FTS
	to avoid a crash when traversing a heavily changed XFS file system:

	> fts: remove NOSTAT_LEAF_OPTIMIZATION

	* NEWS (Bug fixes): Mention the fix.
	* gnulib: Update to latest.
	* bootstrap: Sync from gnulib/build-aux/bootstrap.

	Discussed at:
	<https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html>

2020-04-17  Kim Thor  <kim@thor.nu>  (tiny change)

	xargs.1: fix grammar issue
	* xargs/xargs.1 (BUGS): Remove extra "the".
	Fixes https://sv.gnu.org/bugs/?58193

2020-03-20  Bernhard Voelker  <mail@bernhard-voelker.de>

	build: remove 'withfts.m4' from distribution
	* m4/Makefile.am (EXTRA_DIST): Remove 'withfts.m4'; that file was removed
	with commit 42a28b0dfb.

2020-03-15  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: fix clean rule in doc/ directory
	'make clean' removed the file 'doc/find.texi' which is version controlled.

	* doc/Makefile.am (CLEANFILES): Remove 'find.texi' to avoid that the
	'clean' target removes that file.
	Bug introduced in commit v4.6.0-228-g755a22b9.

2020-03-15  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: ensure .deps/ in the project root is ignored by git
	* .gitignore (.deps/): Add entry.
	* find/.gitignore (/.deps/): Remove here.
	* lib/.gitignore: Likewise.
	* locate/.gitignore: Likewise.
	* xargs/.gitignore: Likewise.

2020-03-15  Bernhard Voelker  <mail@bernhard-voelker.de>

	build: remove --without-fts configure option
	Trying to use this option lead to this error since v4.5.17-6-gfc260795:
	  configure: error: Using --without-fts is not longer supported

	* configure.ac (FIND_WITH_FTS): Remove.
	* m4/withfts.m4: Remove file.
	* NEWS: Document this build-related change.

2020-03-15  Bernhard Voelker  <mail@bernhard-voelker.de>

	doc: prefer https:// over http:// in more places
	Use HTTPS for GNU, FSF, OpenGroup and Google URLs.

	* build-aux/update-online-manual.sh: Switch to HTTPS.
	* doc/find.texi (node Further Reading on Security): Likewise.
	* lib/buildcmd.c: Likewise in a comment.
	* NEWS: Likewise, and shorten a debbugs URL.

2020-03-14  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: fix issue in syntax-check
	* cfg.mk (sc_prohibit_colon_redirection): Don't expect `|` to denote
	the pipe character in git grep.
	Sync fix from:
	https://git.sv.gnu.org/cgit/coreutils.git/commit/?id=0e2d4e1425

2020-03-14  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: add sc_prohibit_or_fail syntax-check
	The shell tests should use `cmd ... || fail=1` for detecting errors.
	Add a syntax-check to ensure they don't use `cmd ... || fail` which
	is a noop.

	* cfg.mk (sc_prohibit_or_fail): Add syntax-check, borrowed from coreutils.

2020-02-14  Peter Frost  <peterwarrenfrost@gmail.com>  (tiny change)

	doc: fix typo
	* doc/find.texi (Name Directives): s/eample/example/
	* find/find.1 (EXAMPLES): Likewise.

	Fixes https://sv.gnu.org/bugs/?57807

2020-02-10  Hugo Gabriel Eyherabide  <hugogabriel.eyherabide@gmail.com>  (tiny change)

	find.1: fix grammar issue in the description of -P
	* find/find.1 (-P): Add "about".
	Fixes https://savannah.gnu.org/bugs/?57775

2020-02-10  Bernhard Voelker  <mail@bernhard-voelker.de>

	tests: avoid FP when run as root
	Test 'sv-bug-54171' produced a false-positive error as 'find' would
	not fail for an unreadable directory when run as root.
	Migrate the test to the newer shell-based tests, and add the
	'skip_if_root_' guard to avoid a false-positive.

	* find/testsuite/find.posix/sv-bug-54171.exp: Remove.
	* find/testsuite/find.posix/sv-bug-54171.xo: Remove.
	* find/testsuite/Makefile.am (EXTRA_DIST_XO, EXTRA_DIST_EXP): Remove the
	above deleted test.
	* tests/find/depth-unreadable-dir.sh: Add test.
	* tests/local.mk (all_tests): Reference it.

	Test FP introduced in commit v4.6.0-178-gdf4610d0.
	Fixes https://savannah.gnu.org/bugs/?57762
	and https://bugzilla.redhat.com/1799064

2020-01-06  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: update gnulib to latest
	Run 'make update-gnulib-to-latest', mainly to avoid a gnulib test failure.

	  > tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.

	* gnulib: Update to latest.

	Fixes: https://sv.gnu.org/bugs/index.php?57277

2020-01-01  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: avoid error from sc_prohibit_gnu_make_extensions
	Since last gnulib update, the above syntax-check rule fails:

	  Error: doc/Makefile: $< in a non implicit rule
	  find_mono.html: find.texi
	  ...
	  make: *** [maint.mk:439: sc_prohibit_gnu_make_extensions] Error 1

	* doc/Makefile.am (find_mono.html): Avoid $< in plain rules.
	(findutils.texi_html_node.tar.gz): Likewise.

	See also: <https://lists.gnu.org/r/bison-patches/2019-05/msg00017.html>

2020-01-01  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: adjust to split out xstrtol-error gnulib module
	* bootstrap.conf (gnulib_modules): Add the new module split from xstrtol.
	* locate/locate.c: Include "xstrtol-error.h" for xstrtol_fatal.

2020-01-01  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: update gnulib to latest
	Run 'make update-gnulib-to-latest', mainly to update the copyright
	year numbers with:

	  > maint: update copyright notices

	* bootstrap: Sync from gnulib/build-aux/bootstrap.
	* gnulib: Update to latest.
	* tests/init.sh: Sync from 'gnulib/tests/init.sh'.

2020-01-01  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: update copyright year number ranges
	Run 'make update-copyright'.

	* lib/regexprops.c (copying): Update the year number manually.
	* tests/sample-test: Likewise, here to avoid starting a year number range.
	* All other files: Update copyright years via the above make run.

2020-01-01  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: add entries to 'doc/.gitignore'
	* doc/.gitignore (/find.html/, /find-maint.html/): Add entries for
	HTML output directories.
	(/find.pdf, /find-maint.pdf): Add entries for PDF files.
	(/find-maint.dvi, /find-maint.ps): Add entries for other formats.

2019-11-30  Bernhard Voelker  <mail@bernhard-voelker.de>

	parser.c: avoid "Condition 'nflags' is always false" in parse_version
	* find/parser.c (parse_version): Remove 'nflags' variable.

	Found by cppcheck.

2019-11-25  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: adjust exemption list for sc_trailing_blanks
	* cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Remove the
	regex part for 'find/testsuite/test_escapechars.golden' as that file
	was removed in commit v4.6.0-214-g3f6b28c4.

2019-11-25  Bernhard Voelker  <mail@bernhard-voelker.de>

	xargs: avoid trailing blank in -t,--verbose output
	'xargs -t' had a trailing blank in the output, e.g.:
	  $ echo a b | xargs -t 2>&1 | cat -e
	  echo a b $
	  a b$
	POSIX mandates that the constructed command line "shall be written
	to standard error, as it will be invoked", so avoid outputting the
	trailing blank.
	FWIW: This change still plays well with -p,--interactive, because
	POSIX says to just output "?..." as a prompt after the -t output.

	* xargs/xargs.c (print_args): Instead of outputting a blank after each
	cmd_argv[i], output a blank before each item unless for the first one.
	* tests/xargs/verbose-quote.sh: Remove trailing blanks from expected
	stderr.
	* xargs/testsuite/xargs.gnu/space-t-0.xe: Likewise.
	* xargs/testsuite/xargs.sysv/empty-t.xe: Likewise.
	* xargs/testsuite/xargs.sysv/empty_def-t.xe: Likewise.
	* xargs/testsuite/xargs.sysv/s25-t.xe: Likewise.
	* xargs/testsuite/xargs.sysv/space-t.xe: Likewise.
	* xargs/testsuite/xargs.sysv/trace.xe: Likewise.
	* NEWS: Mention the change.

	Reported by 積丹尼 Dan Jacobson <jidanni@jidanni.org> in:
	    https://sv.gnu.org/bugs/?57291

2019-11-13  Bernhard Voelker  <mail@bernhard-voelker.de>

	doc: use "symbolic link" instead of "symlink" consistently
	* doc/find.texi (-printf): Change the shorter term "symlink" to
	"symbolic link" for consistency with the rest of the Texinfo manual
	and the man page.
	(%Y): Likewise.
	* find/find.1 (%Y): Likewise.

	Suggested by 積丹尼 Dan Jacobson <jidanni@jidanni.org> in:
	  https://lists.gnu.org/r/bug-findutils/2019-11/msg00003.html

2019-09-13  Bernhard Voelker  <mail@bernhard-voelker.de>

	maint: fix typos in configure.ac
	* configure.ac: Fix 2 typos in comments.

2019-09-06  Bernhard Voelker  <mail@bernhard-voelker.de>

	doc: fix the command for pushing the tag in the release instructions
	* doc/find-maint.texi (Making Releases): When pushing the tag, refer to
	the remote name 'origin'.  Also avoid the --tags option because that
	would publish all local tags, i.e., not only the given one.  Use RELTAG
	instead of 'the-tag-name'.

2019-09-03  Bernhard Voelker  <mail@bernhard-voelker.de>

	tests: output PATH value in log files
	Adjust the PATH variable for the test setup a bit later, i.e., after
	'tests/init.sh' has turned on 'set -x', so that the PATH value appears
	in the test logfiles.

	* init.cfg (fu_path_prepend_): Wrap immediate path_prepend_ call into
	this new function.
	* tests/find/debug-missing-arg.sh: Use it - right after sourcing in
	'tests/init.sh'.
	* tests/find/exec-plus-last-file.sh: Likewise.
	* tests/find/execdir-fd-leak.sh: Likewise.
	* tests/find/many-dir-entries-vs-OOM.sh: Likewise.
	* tests/find/name-lbracket-literal.sh: Likewise.
	* tests/find/printf_escape_c.sh: Likewise.
	* tests/find/printf_escapechars.sh: Likewise.
	* tests/find/printf_inode.sh: Likewise.
	* tests/find/refuse-noop.sh: Likewise.
	* tests/find/type_list.sh: Likewise.
	* tests/misc/help-version.sh: Likewise.
	* tests/sample-test: Likewise.
	* tests/xargs/verbose-quote.sh: Likewise.

2019-09-01  James Youngman  <jay@gnu.org>

	doc: add missing newline in find.1, making some text non-bold.

	doc: Add instructions on how to access source via git in README.

	find: Clarify description of %f and %h.
	Fix https://savannah.gnu.org/bugs/index.php?35253
	* doc/find.texi (Name Directives): Clarify description of %f and %h.
	* find/find.1 (-printf): Likewise.
	* NEWS: mention this change.

	Fix Savannah bug 54730: additional examples for -quit.
	* doc/find.texi (-quit): add another example.
	* find/find.1 (-quit): add another example.
	(-exec): Point out that -exec my-command {} + -quit
	may not result in my-command being run.
	(EXAMPLES): add an example for -quit.
	* NEWS: mention this change.

2019-09-01  Andreas Metzler  <ametzler@bebt.de>

	Fix testsuite error on hurd and BSD related to ln
	* find/testsuite/find.gnu/samefile-p-brokenlink.exp: Pass "-P" option to
	enforce generation of hard link to symlink. link() behavior is
	"implementation-defined" by POSIX and BSD/hurd chose a different behavior
	than Linux.
	This fixes http://bugs.debian.org/826357, https://savannah.gnu.org/bugs/index.php?48135
	Also fix ln -s invocation to generate a valid symlink.
	* NEWS: Mention that Savannah bug #48135 is fixed.

2019-08-30  James Youngman  <jay@gnu.org>

	gnulib: update to current.

	gnulib: use nstrftime module instead of strftime.
	These modules are actually synonymous, it's just that the module name
	strftime is deprecated in favour of nstrftime.

	doc: updates to release instructions.
	Some additions to the release instructions:
