summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-01-06build: require newer versions of automake and autoconfJim Meyering
* configure.ac: Require autoconf-2.62 and automake-1.11.1 or newer. * bootstrap.conf (buildreq): Require automake-1.11.1 or newer, to ensure people use a version with the fix for CVE-2009-4029. Note that the coreutils-8.2 tarball included a fixed Makefile.in. Require autoconf-2.62, per automake.
2010-01-06cp, touch: avoid problem with new glibcEric Blake
* gnulib: Update, for utimens fix. * NEWS: Mention the fix. Reported by Guillaume Ayoub in http://bugs.debian.org/563726. See also http://bugzilla.redhat.com/552320. Signed-off-by: Eric Blake <ebb9@byu.net>
2010-01-05doc: fix typo in NEWSPhilip Rowlands
* NEWS: Fix typo: s/repeated/repeatedly/
2010-01-05build: update gnulib submodule to latestJim Meyering
2010-01-05maint: always free a buffer, to avoid even semblance of a leakJim Meyering
* src/tac.c (main): Free the input buffer in most cases.
2010-01-04maint: use more readable operator: "||" rather than "|"Jim Meyering
* src/cp.c (make_dir_parents_private): Use "||" rather than "|", so that clang understands there is no undefined pointer dereference.
2010-01-03maint: record update-copyright options for this packageJim Meyering
* cfg.mk: Next time, just run "make update-copyright".
2010-01-01ls: fix color of broken symlinks colored as targetEric Blake
* src/ls.c (print_color_indicator): When using 'LINK target' in dircolors, treat broken symlink as C_ORPHAN. * tests/misc/ls-misc (sl-dangle2, sl-dangle3, sl-dangle4) (sl-dangle5): Test for it, and add more coverage. * NEWS: Document it. * THANKS: Update. Reported by Chris Jones.
2010-01-01df: use fputs in place of printf in a few more placesJim Meyering
* src/df.c (print_header): Use fputs rather than printf in more places. Suggested by Eric Blake.
2010-01-01build: update gnulib submodule to latestJim Meyering
2010-01-01maint: add a few copyrights; remove obsolete README fileJim Meyering
* tests/README: Remove long-obsolete file. * tests/Makefile.am (EXTRA_DIST): Remove README. * tests/misc/truncate-dir-fail: Add copyright comment. * tests/misc/selinux: Likewise. * tests/misc/chcon: Likewise. * tests/misc/chcon-fail: Likewise. * tests/sample-test: Use only 2010 in this list.
2010-01-01maint: update all FSF copyright year lists to include 2010Jim Meyering
Use this command: git ls-files | grep -v COPYING \ | xargs env UPDATE_COPYRIGHT_USE_INTERVALS=1 \ build-aux/update-copyright
2010-01-01pr --help: add missing space between short and long options usage messageStéphane Raimbault
* src/pr.c (usage): Add missing space.
2010-01-01pr --help: improve a line-breakStéphane Raimbault
* src/pr.c (usage): Move the newline character a bit farther.
2010-01-01df: add comments to help translators align column headersStéphane Raimbault
* src/df.c (print_header): Add a comment telling translators to retain the message length, and another to align header translations.
2009-12-31maint: newer gnulib; don't hard-code my GPG key IDJim Meyering
* cfg.mk (gpg_key_ID): Remove definition, now that maint.mk automates it. * gnulib: Update to latest.
2009-12-31doc: update tail's documentation to allow for new -F semanticsJim Meyering
* src/tail.c (usage): Reword tail -F description, so that it no longer mentions details specific to the non-inotify implementation. Also, join diagnostic strings (while staying under the 509-byte limit) to ease formatting of translations. The latter was prompted by a report from Stéphane Raimbault. * doc/coreutils.texi (tail invocation): Update description here, too.
2009-12-30touch: work around ntfs-3g bugEric Blake
* gnulib: Update, for utimensat fix. * NEWS: Improve wording about touch fixes. * THANKS: Update. Reported by Stuart Citrin.
2009-12-30build: update gnulib submodule to latestJim Meyering
2009-12-30doc: mention two tail -F bug fixes in NEWSJim Meyering
* NEWS (Bug fixes): Two tail -F fixes.
2009-12-30tail: test for a bug in inotify-enabled tail -FJim Meyering
tail -F a b would stop tracking additions to b after "mv a b". * tests/tail-2/F-vs-rename: New file. * tests/Makefile.am (TESTS): Add it.
2009-12-30tail -F: don't stop following the target of a renameGiuseppe Scrivano
This fixes a bug whereby tail -F would fail to track changes to a file that was a target of a rename, and when the source of the rename was another tailed file. * src/tail.c (tail_forever_inotify): Ensure the wd is not already present in the hash table before trying to add it. When a new watch descriptor is added to the `wd_to_name' hash table, check that it is not already present. If it is present then remove the previous element.
2009-12-30maint: improve the info about $PATH in README-prereqPádraig Brady
* README-prereq: It wasn't obvious that the $PATH should be set before building any of the prerequisite packages, so move that information up.
2009-12-29tail: add another test to exercise abort-inducing flaw in tail -FJim Meyering
* tests/tail-2/inotify-hash-abuse2: New test, based on a reproducer by Rob Wortman. * tests/Makefile.am (TESTS): Add it.
2009-12-29tail: add a test to exercise abort-inducing flaw in tail -FJim Meyering
* tests/tail-2/inotify-hash-abuse: New file, derived from a report by Rob Wortman. * tests/Makefile.am (TESTS): Add it. Improved by: Pádraig Brady.
2009-12-29tail: remove `fdspec' from the hash table before changing its keyGiuseppe Scrivano
* src/tail.c (tail_forever_inotify): Avoid modifying fdspec->wd while it is in the wd_to_name hash table. Once it is removed, it can be added using the new `wd' as key for the hash table. This fixes the abort-inducing bug reported by Rob Wortman in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/19372
2009-12-29maint: quiet "make" in doc/Jim Meyering
* doc/Makefile.am (constants.texi): Add a use of AM_V_GEN.
2009-12-29tail: rename an internal variableJim Meyering
* src/tail.c (tail_forever_inotify): s/wd_table/wd_to_name/
2009-12-29tail: avoid read-beyond-end-of-buffer errorJim Meyering
* src/tail.c (tail_forever_inotify): Do not use f[i] in a context where i may be larger than the largest valid index. In the final "if" clause in which we'd remove an inotify watch, we might have used f[n_files]. Use fspec instead, since it is guaranteed to be defined.
2009-12-26maint: ignore more built filesEric Blake
Recent gnulib changes added new built files. * .gitignore: Add arg-nonnull.h, link-warning.h, unused-parameter.h.
2009-12-26tac: supply link dependencyEric Blake
* src/Makefile.am (tac_LDADD): Add LIB_GETHRXTIME. * THANKS: Update. Reported by Robert Schwebel.
2009-12-26build: update gnulib submodule to latestJim Meyering
2009-12-26tail: shrink internal struct by 8 bytesJim Meyering
* tail.c (struct File_spec): Rearrange struct members to decrease size by 8 bytes to 76,96 on i686,x86_64 respectively.
2009-12-25maint: tail: avoid in-function #if directivesJim Meyering
* src/tail.c (fremote): Add a comment. Move definition "up" to precede first use, so we can remove its prototype and the #if..#endif around each use. (any_remote_file): Rename from any_remote_files.
2009-12-25tail: fix --follow to not use inotify on remote filesPádraig Brady
* src/tail.c (struct File_spec): Add a flag to record if file is remote. (recheck): If we're using inotify then check if the file has gone remote and if so, drop it with a warning. (any_remote_files): A new function to check for any open remote files. (tailable_stdin): A new function to refactor the check for whether a tailable file was specified through stdin. (fremote): A new function to check if a file descriptor refers to a remote file. (tail_forever_inotify): Add some comments. (tail_file): Record if a file is remote when initially opened. (main): Disable inotify if any remote files specified. Also document the caveat about remounted files not being noticed by inotify. * NEWS: Mention the fix.
2009-12-23wc: line-buffer the printed countsPádraig Brady
* src/wc.c (main): Set stdout to line buffered mode to ensure parallel running instances don't intersperse their output. This adds 6.5% to the run time in the worst case of many zero length files, but has neglible impact for standard sized files. * tests/misc/wc-parallel: New test for atomic output. * tests/Makefile.am: Reference it. * NEWS: Mention the fix This is similar to commit 710fe413, 20-10-2009, "md5sum, sha*sum, sum: line-buffer the printed checksums"
2009-12-22stat: Recognize k-afs, gfs, ocfs2 file system typesPádraig Brady
* src/stat.c (human_fstype): Add k-afs, gfs/gfs2 and ocfs2. * NEWS: Update the stat -f entry.
2009-12-22stat: add support for more file system typesPádraig Brady
* src/stat.c (human_fstype): Add the following FS types: fuseblk, rpc_pipefs. Also fix a typo of minux3 to minix3, and mention the fs-magic-compare make target to help update the list. * NEWS: Mention the fix.
2009-12-20build: correct coreutils-specific distcheck rulesJim Meyering
* dist-check.mk (built_programs): Use $(bin_PROGRAMS), not $(PROGRAMS). Otherwise, my-instcheck would fail due to non-installation of e.g., the noinst_PROGRAMS, setuidgid and getlimits. (taint-distcheck): Correct the grep command that checks for libtool traces in configure.
2009-12-19touch: fix ctime regression in 'touch -a'Eric Blake
Regression introduced in coreutils 8.1 due to a bug in the Linux kernel implementation of utimensat with mtime of UTIME_OMIT. * gnulib: Update to latest, to pick up utimensat fix. * NEWS: Mention the change. * THANKS: Update. Reported by John Stanley.
2009-12-19maint: don't include the strverscmp gnulib modulePádraig Brady
* bootstrap.conf (gnulib_modules): Remove the strverscmp module which is not used since commit e505736f, on 03-10-2008, "ls and sort: use filevercmp instead of strverscmp"
2009-12-19doc: enhance and reference info about version comparisonPádraig Brady
* doc/coreutils.texi (sort invocation): Reference the additional info about filevercmp rather than the unused strverscmp. (Details about version sort): Add some examples that are not handled well by fileversmp. * src/ls.c: Change a comment referencing the now unused strverscmp.
2009-12-19rm: fix --one-file-system regression due to fts conversionPádraig Brady
* src/remove.c (rm_fts): Fix incorrect comparison of device and inode numbers. * tests/rm/one-file-system2: Add a separate test so that it can be run as a normal user (It doesn't need to mount). * tests/Makefile.am: Reference it. * NEWS: Mention the fix. Reported by Jan Larres.
2009-12-14maint: improve dist-check.mk rulesJim Meyering
* dist-check.mk (null_AM_MAKEFLAGS): Remove LIBTOOL. Adding it was erroneous, since it is required when building from a distribution tarball of a libtool-using project. Reported by Ralf Wildenhues. (my-distcheck): Reorganize to use a subshell and set -e, so that failures propagate "out". Without this change, setting LIBTOOL=false would cause a failure that would then be ignored, probably due to a problem in $(install-transform-check).
2009-12-14base64: use *_OPTION_DESCRIPTION macros instead of hard-coded stringsThiago Farina
* src/base64 (usage): Use HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION macros, not literal strings.
2009-12-13tests: unpack xz-compressed tarballs when possible, not always *.gzJim Meyering
* dist-check.mk: Unpack compressed tarball using xz when possible, since that's faster.
2009-12-13maint: make dist-check.mk more easily sharedJim Meyering
* dist-check.mk (built_programs): More generic, but still assumes src/. Don't set GZIP in environment when untarring. (my-distcheck): Use $(DIST_ARCHIVES), rather than assuming that there is always a .tar.gz file.
2009-12-13nohup: if fd_repoen fails (redirecting stdin), report itJim Meyering
* src/nohup.c (main): Don't ignore fd_reopen failure.
2009-12-13tests: make the taint-distcheck rule easier to share with other projectsJim Meyering
* dist-check.mk (taint-distcheck): Skip this test in a project that uses libtool.
2009-12-13stat: recognize "sockfs" file system type, ...Jim Meyering
... now that its magic number appears in <linux/magic.h>. * src/stat.c (human_fstype) [S_MAGIC_SOCKFS]: Add case.