2138 Commits

Author SHA1 Message Date
James Youngman
601cef07bb Apply some improvements suggested by Mike Frysinger.
These improvements were suggested at https://savannah.gnu.org/bugs/?46714.
* find/Makefile.am (check_PROGRAMS): Put oldfind in check_PROGRAMS
instead of noinst_PROGRAMS, so that we don't build it when it is
not needed.
* m4/withfts.m4 (FIND_WITH_FTS): Fix whitespace alignment.
(FIND_WITH_FTS): The WITH_FTS C preprocessor macro and the
accompanying Automake conditional are no longer needed.
* THANKS: Add Mike Frysinger.
2015-12-28 10:38:28 +00:00
Bernhard Voelker
f593432309 maint: avoid sc_prohibit_always_true_header_tests failure.
* configure.ac: Check for getrlimit function directly rather than the
"sys/resource.h" header file.
* lib/fdleak.c: Include "sys/resource.h" when HAVE_GETRLIMIT is set.
(get_max_fd): s/HAVE_GETRUSAGE/HAVE_GETRLIMIT/.
2015-12-28 10:15:31 +00:00
Bernhard Voelker
852e4225af maint: avoid syntax-check failures
* Makefile.am (gen-ChangeLog): Replace 8 spaces by a tab to avoid
sc_makefile_TAB_only_indentation failure.
* po/POTFILES.in: Remove some entries to let sc_po_check pass.
While at it, sort the entries.
* find/print.c (do_fprintf): Remove stray semicolon to let
sc_prohibit_double_semicolon pass.
* find/util.c (digest_mode): Likewise.
* bootstrap.conf: Change comment to let sc_prohibit_doubled_word pass.
* build-aux/git-log-fix: Remove empty lines at EOF to let
sc_prohibit_empty_lines_at_EOF pass.
* find/testsuite/Makefile.am: Likewise.
* find/testsuite/sv-34079.sh: Likewise.
* find/testsuite/test_inode.sh: Likewise.
* locate/testsuite/locate.gnu/slocate.exp: Likewise.
* lib/buildcmd.c: Remove unused include of openat header to let
sc_prohibit_openat_without_use pass.
* lib/listfile.c: Likewise.
* find/util.c: Remove unused include of 'verify.h' to let
sc_prohibit_verify_without_use pass.
* xargs/xargs.c: Likewise.
* find/parser.c (insert_regex): Mark error diagnostic for translation;
found by 'make sc_unmarked_diagnostics'.
* cfg.mk (exclude_file_name_regexp--sc_prohibit_strncpy): Exempt the
2 remaining sources using the possibly dangerous strncpy function
from the syntax-check.
2015-12-28 10:15:31 +00:00
James Youngman
07968e17e4 Move on from the previous release.
* configure.ac: Update version number to 4.5.19-git, signifying
that the source tree in Git is not the same as the 4.5.18 release.
* NEWS: Likewise.
2015-12-28 10:03:58 +00:00
James Youngman
d6c033391f Release findutils-4.5.18.
* configure.ac: Update version number to 4.5.18.
* NEWS: Likewise, and set the release date to 2015-12-27.
v4.5.18
2015-12-27 21:21:15 +00:00
James Youngman
9900125072 Updated po files as a side effect of "make dist".
* po/*.po: updated by "make dist".
* po/findutils.pot: updated by "make dist".
2015-12-27 21:10:04 +00:00
James Youngman
efd03fa50e Rename find/find.c to find/oldfind.c.
* find/Makefile.am (oldfind_SOURCES): rename find.c to oldfind.c.
* find/.gitignore: Likewise.
* po/POTFILES.in: rename find/find.c to find/oldfind.c
* find/defs.h: Change references to find.c to oldfind.c.
* doc/find-maint.texi (Factor Out Repeated Code): Likewise.
* find/ftsfind.c: Point out that this file is derived from
oldfind.c (instead of leaving a reference to the old name of the
renamed file).
* find/testsuite/config/unix.exp: Look for ftsfind.o instead of find.o
when checking that we're really looking at the build directory.
2015-12-27 21:09:46 +00:00
James Youngman
fc260795fd Remove support for installing oldfind.
This fulfills a reqeust made as Savannah bug #46714.
* NEWS: Mention this change.
* m4/withfts.m4 (FIND_WITH_FTS): --with-fts is the only supported
choice.  The configure script now fails if run using --without-fts
or --with-fts=no.
* find/Makefile.am (noinst_PROGRAMS): Never install oldfind.
Delete the oldfind.1 and ftsfind.1 manpages, leaving only find.1.
Fix a typo and remove some commented-out lines.
* find/find.c (main): add a comment pointing out that this is not
the main() function of th binary that actually gets installed.
* find/ftsfind.1: delete.
* find/oldfind.1: delete.
* find/find.1: Remove the section "BINARIES" since there are no
longer two binaries.
* find/testsuite/config/unix.exp: Assume --with-fts; hence the binaries
are always called oldfind and find (and there is no ftsfind binary).
2015-12-27 21:07:56 +00:00
James Youngman
2b39a561df Updated the Slovenian translation 2015-12-27 15:52:51 +00:00
Andreas Metzler
783704be4e Use the official FDL license wording in license text.
* README-hacking (footer): use the official FDL license wording as
listed in FDL's "ADDENDUM: How to use this License for your
documents". Update copyright year.
* NEWS (footer): Likewise.
* doc/find-maint.texi: Likewise.
* doc/find.texi: Likewise.
* doc/regexprops.texi: Likewise.
* lib/regexprops.c (copying): Amend the code to emit the updated
wording.  Update the copyright year.
2015-12-27 15:43:53 +00:00
Andreas Metzler
a6a525cdb2 Fix bashism ([[ ... ]] instead of [ ... ]).
* find/testsuite/test_escape_c.sh: Use [...] instead of [[...]].
2015-12-24 18:25:53 +00:00
James Youngman
9faa72296a Fix typo in NEWS file entry for 4.5.17.
* NEWS: Fix typo.
2015-12-24 17:43:59 +00:00
James Youngman
5b2fa3f385 Update version number indicating the code post-dates findutils-4.5.17.
* NEWS: Update version number.
* configure.ac (AC_INIT): Update version.
2015-12-24 17:42:31 +00:00
James Youngman
629e887dff Update version number in preparation for release of findutils-4.5.17.
* NEWS: Update version number.
* configure.ac (AC_INIT): Update version.
v4.5.17
2015-12-24 16:39:45 +00:00
James Youngman
69e453dceb Mention upcoming changes to release signing keys.
* NEWS: Mention upcoming changes to release signing keys.
2015-12-24 16:37:34 +00:00
James Youngman
3de8c4f24a Documentation fix for bug #36960 and greater effect of POSIXLY_CORRECT.
* find/parser.c (parse_table): -warn is now parsed as a positional
option instead of a global one. This does not affect the effect of
-warn.  (found_parser): Warnings are no longer issued for global
options specified in confusing positions when the POSIXLY_CORRECT
environment variable is set.  POSIXLY_CORRECT also suppresses warnings
about -d and the use of '/' in the argument to -name.  * find/find.1:
Eliminate the duplicate section name OPTIONS, using the OPTIONS
section just for -L, -P and so on.  Other options are now documented
in the subsection POSITIONAL OPTIONS (if they take effect only on
items on the command line which appear later) or GLOBAL OPTIONS (if
they take effect even on tests/actions appearing before them).  The
-regextype option in particular is now correctly documented as being
positional.  We rename the EXPRESSIONS section to EXPRESSION in order
to match the usage summary.  The OPERATORS heading is demoted to a
subheading so that it fits within EXPRESSION.  (POSITIONAL OPTIONS):
be more explicit about how warnings are controlled by -warn, -nowarn
and POSIXLY_CORRECT.  * NEWS: Describe the changes to the find manual
page and warnings.
2015-12-24 16:08:40 +00:00
James Youngman
4b1f16d1b7 Update some control files in po/ for new version of gettext.
* po/Rules-quot: Updated as a result of updating gettext.
* po/Makevars.template: Likewise.
* po/Makevars: Likewise.
2015-12-24 11:41:59 +00:00
James Youngman
d286cf67dd Avoid an fd leak in fopen_cloexec_for_read_only.
* xargs/xargs.c (fopen_cloexec_for_read_only): when fdopen fails,
close the file descriptor instead of leaking it.  Also, use GNU-style
brace positioning. Both problems were noticed by Paul Eggert.
2015-12-23 23:23:05 +00:00
James Youngman
9ebef301ac Tweak 2015-12-23 ChangeLog entry to remove a spurious newline.
* build-aux/git-log-fix: Remove a spurious extra newline in the
change log entry for the 2015-12-23 change by Dmitry V. Levin.
2015-12-23 23:09:57 +00:00
James Youngman
cf19ebe4b4 Fix wording in the NEWS for 4.5.16.
* NEWS: fix wording: add missing "to" in the changes for 4.5.16.
2015-12-23 23:04:45 +00:00
James Youngman
175862af7b xargs: Don't leak file descriptors over an exec boundary.
This fixes a bug reported by Kyle Sallee (by email, so there is no
Savannah bug number for it).
* xargs/xargs.c (fopen_cloexec_for_read_only): New function; like
fopen (..., "r") but sets the resulting file to be closed on exec.
(main): Remember any non-O_CLOEXEC file desciptors that were open
on startup so that we don't get false positives later.
(prep_child_for_exec): Call complain_about_leaky_fds.
(main): Any file opened to support the -a option is marked
close-on-exec.  If we open /dev/tty to support the -p option, mark
that file close-on-exec, too.
* NEWS: mention this bugfix.
2015-12-23 22:45:18 +00:00
James Youngman
034a638eae Update the Serbian translation.
* po/sr.po: Update the Serbian translation.
* NEWS: mention this.
2015-12-23 22:03:17 +00:00
James Youngman
b3f4c467ee Update the Brazilian Portuguese translation.
* po/pt_BR.po: Updated Brazilian Portuguese translation.
* NEWS: mention this.
2015-12-23 22:01:04 +00:00
Dmitry V. Levin
f4d77401d0 Fix save_cwd/restore_cwd error diagnostics.
Before this change, a pointer to struct saved_cwd was used in place
of char*, leading to incorrect error diagnostics, e.g.:
$ chmod a-x . && find / -maxdepth 0 -exec true \;
find: Failed to change directory: ÿÿÿÿ: Permission denied
find: failed to restore initial working directory: ÿÿÿÿ: Permission denied

* find/exec.c (prep_child_for_exec): Fix error diagnostics.
* find/util.c (record_initial_cwd, cleanup_initial_cwd): Likewise.
2015-12-23 21:44:33 +00:00
James Youngman
2135babdee Fix menu item ordering in chapter "Coding Conventions".
* doc/find-maint.texi (Coding Conventions): Re-order menu items to
match the section ordering.
2015-12-23 21:02:19 +00:00
James Youngman
9f640e8034 Document the functions declared in regextype.h.
* lib/regextype.h: Document the semantics of the functions
declared in this header.
2015-12-23 18:34:59 +00:00
James Youngman
4796acc972 Update version number to make clear the current code is newer than 4.5.16.
* configure.ac: Update the version number to 4.5.17-git.
* NEWS: Likewise, begin a new section for 4.5.17.
2015-12-23 17:49:38 +00:00
James Youngman
89947522b8 Release findutils 4.5.16.
* NEWS: Update version number to 4.5.16.
* configure.ac: Likewise.
v4.5.16
2015-12-23 16:57:58 +00:00
James Youngman
8dd6d6fd06 Point out that the gnulib update also fixes bug #40146.
* NEWS: mention that this bug is fixed.
2015-12-23 16:45:47 +00:00
James Youngman
99ad928840 gnulib: bring up-to-date with current git head of gnulib.
This fixes Savannah bug #46715 ("testsuite error with perl 5.22,
gnulib outdated").
* doc/regexprops.texi: Regenerate this file from gnulib's changed
regular expression dialect definitions regex.h.  The effect is for
regex types egrep and posix-egrep to become synonyms.
* NEWS: Mention this change.
2015-12-23 15:56:02 +00:00
James Youngman
b96b2cd4d4 Upgrade from gettext version 0.18 to version 0.19.
* configure.ac: Update AM_GNU_GETTEXT_VERSION to 0.19.3.
2015-12-22 16:58:18 +00:00
Stephane Chazelas
1a009ccb81 Add a missing space in an -execdir example in find.texi.
* doc/find.texi (Problems with -exec and filenames): Add a missing space.
Copyright-paperwork-exempt: Yes
2015-12-20 18:58:31 +00:00
James Youngman
5c18a21e87 Updated ten translations.
* po/et.po: Updated Estonian translation.
* po/sv.po: Updated Swedish translation.
* po/pl.po: Updated Polish translation.
* po/vi.po: Updated Vietnamese translation.
* po/uk.po: Updated Ukranian translation.
* po/nb.po: Updated Norwegian Bokmaal translation
* po/cs.po: Updated Czech translation
* po/ru.po: Updated Russian translation
* po/fr.po: Updated French translation
* po/hu.po: Updated Hungarian translation
2015-12-20 18:44:29 +00:00
James Youngman
47a2bb7d8e Re-format some ChangeLog messages and remove revent boring ones.
* build-aux/git-log-fix: Re-format the log messages from the last
few commits in order to end up with nicely-formatted ChangeLog
entries, and remove the ChangeLog entries which would otherwise
have reflected the git changes needed to make the corrections.
2015-12-18 22:51:48 +00:00
James Youngman
4bce720c01 Revert change with badly-formatted change-log entry.
This reverts commit db79379e3bae8d3dbdad1400c34a65820bac8cb7.
2015-12-18 22:31:04 +00:00
James Youngman
f05ecf7731 Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/findutils 2015-12-18 16:48:52 +00:00
James Youngman
e7a2c8f67b Explain how child exit status affects find's exit status.
* doc/find.texi (Run Commands): Add a new subsection and menu
item, Child Exit Status.
(Child Exit Status): New subsection, describing how the exit
status of find is affected (or not) by the exit status of the
commands run by  -exec and similar actions.
* find/find.1 (-exec): Explain how the exit status of the child
affects (or not) the exit status of find.
(-execdir): Likewise.
(EXIT STATUS): Likewise.
* NEWS: mention these changes.
2015-12-18 16:46:59 +00:00
James Youngman
db79379e3b 2015-12-18 James Youngman <jay@gnu.org>
* doc/find.texi (Run Commands): Add a new subsection and menu
	item, Child Exit Status.
	(Child Exit Status): New subsection, describing how the exit
	status of find is affected (or not) by the exit status of the
	commands run by  -exec and similar actions.
	* find/find.1 (-exec): Explain how the exit status of the child
	affects (or not) the exit status of find.
	(-execdir): Likewise.
	(EXIT STATUS): Likewise.
	* NEWS: mention these changes.
2015-12-18 16:46:04 +00:00
James Youngman
f75230fb49 Update version number to make clear the current code is newer than 4.5.15.
* configure.ac: Update the version number to 4.5.16-git.
* NEWS: Likewise, begin a new section for 4.5.16.
2015-12-18 16:07:18 +00:00
James Youngman
a22f6288e9 Release findutils 4.5.15.
* configure.ac: Update the version number to 4.5.15.
* NEWS: Likewise, and set the release date.
* po/*: Update with 'make dist'.
v4.5.15
2015-12-18 14:45:57 +00:00
James Youngman
0dbb12b4ae Mention the bugfix for bug #42903.
* NEWS: mention the bugfix for bug #42903.
2015-12-18 14:19:17 +00:00
James Youngman
e839998fb7 Use troff symbols (fixes Savannah bug 40805).
* locate/locatedb.5: Use troff symbols where appropriate,
including \(+- and \(en.  Also use - instead of \- when we're not
describing an option.
* NEWS: Mention this change.
2015-11-01 22:14:54 +00:00
James Youngman
0f8d219b7a Remove spurious backslash.
* find/find.1: Remove spurious backslash before ";".
2015-11-01 21:50:27 +00:00
James Youngman
9b66d2cbd6 Document the behaviour reported in Savannah bug 46305.
* doc/find.texi (Symbolic Links): Explain that -L can give
surprising behaviour when symbolic links can become broken during
the execution of find.
* find/find.1 (-L): Likewise.
2015-11-01 21:44:57 +00:00
James Youngman
771ace2582 Add copyright headers to some files which lack them.
* find/testsuite/excuses.txt: remove spurious character (a typo).
* find/testsuite/test_escape_c.sh: Add copyright header.
* find/testsuite/binary_locations.sh: Likewise.
* find/testsuite/checklists.py: Likewise.
* find/testsuite/Makefile.am: Likewise.
* find/testsuite/sv-bug-32043.sh: Likewise.
* find/testsuite/test_escapechars.sh: Likewise.
* find/testsuite/test_inode.sh: Likewise.
* xargs/testsuite/Makefile.am: Likewise.
* locate/testsuite/Makefile.am: Likewise.
* build-aux/Makefile.am: Likewise.
* doc/Makefile.am: Likewise.
* find/print.h: Likewise.
* lib/check-regexprops.sh: Likewise.
2015-11-01 14:37:12 +00:00
James Youngman
ec20fbc585 Update po/*.po, po/findutils.pot with "make dist".
po/*.po: update with "make dist".
po/findutils.pot: likewise.
2015-10-31 23:36:52 +00:00
James Youngman
731826cc8d find: adaptive column alignment (resolves Savannah bug #45780)
* lib/listfile.c (list_file): For aligned fields, use the number
of characters output to deduce whether our current idea of the
maximum width of each field is too small.  When this happens,
increase the field width.  Keep track of the field width in a
static variable for each field.  Do this for the inode number,
number of blocks, owner, group, major and minor device numbers,
and the file size.  Use mbswidth in some places to count
characters.
* find/print.c (do_fprintf): Mention the potential portability
problems in casting ino_t to uintmax_t.
* bootstrap.conf (gnulib_modules): Add mbswidth.
* po/Makevars (XGETTEXT_OPTIONS): updated by running bootstrap.
*NEWS: Mention this bugfix.
2015-10-31 23:26:31 +00:00
Jason Vas Dias
f4dd5bdbd8 Fix bug #45505: improve error message given for invalid regular expression.
* find/parser.c (insert_regex): improve error message given for invalid
regular expression.
* NEWS: mention this bugfix.

Copyright-paperwork-exempt: yes
2015-10-26 16:51:49 +00:00
James Youngman
c46bfb3cac Fix warning from makeinfo: add missing comman in @xref
docs/find.texi: add missing comma in @xref.
2015-10-25 20:19:16 +00:00
James Youngman
0f0221ffd6 Fix bug #45585: unclear description of -newerXY in manual page.
* find/find.1 (-newerXY): Use the clearer wording from the Texinfo
documentation.
* NEWS: Mention this bugfix.
2015-10-25 19:49:24 +00:00