summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2004-05-21*** empty log message ***Jim Meyering
2004-05-21Update from gnulib (fix reversed test).Jim Meyering
2004-05-20.Jim Meyering
2004-05-20Update from gnulib.Jim Meyering
2004-05-20*** empty log message ***Jim Meyering
2004-05-20(sc_unmarked_diagnostics): Now that the unmarkedJim Meyering
diagnostics in shred.c have been fixed, don't exempt shred.c from this check.
2004-05-20*** empty log message ***Jim Meyering
2004-05-20Use translatable diagnostics, e.g.Jim Meyering
change "%s: remove" to _("%s: failed to remove") and change "%s: close" to _("%s: failed to close").
2004-05-20*** empty log message ***Jim Meyering
2004-05-20Update from gnulib.Jim Meyering
2004-05-18*** empty log message ***Jim Meyering
2004-05-18(names): Bring back lower-case letters, "_", andJim Meyering
".". But continue to omit +, =, %, @, #, as they're either shell metacharacters (for some shells) or are not in some character sets, or (in the case of '%') must be a metacharacter somewhere.
2004-05-17*** empty log message ***Jim Meyering
2004-05-17.Jim Meyering
2004-05-17Sync with gnulib.Jim Meyering
2004-05-17Sync with gnulib.Jim Meyering
2004-05-17Sync with gnulib.Jim Meyering
2004-05-17(cut_fields): Adjust to new signature of getndelim2.Jim Meyering
2004-05-17(incname): Decrement `len' only once per loop iteration.Jim Meyering
2004-05-17*** empty log message ***Jim Meyering
2004-05-17*** empty log message ***Jim Meyering
2004-05-17*** empty log message ***Jim Meyering
2004-05-17.Jim Meyering
2004-05-17.Jim Meyering
2004-05-17*** empty log message ***Jim Meyering
2004-05-17Use -h where necessary to retain semantics.Jim Meyering
2004-05-17*** empty log message ***Jim Meyering
2004-05-17chgrp and chown now dereference symlinks by default, per POSIX.Jim Meyering
(usage): Update to reflect this.
2004-05-17(chopt_init): Affect each symlink referent by default.Jim Meyering
2004-05-17*** empty log message ***Jim Meyering
2004-05-17chgrp and chown now dereference symlinks by default, per POSIX.Jim Meyering
(chgrp invocation, chown invocation): Document it.
2004-05-16chown --dereference did nothing when the owner/group of aJim Meyering
symlink matched the desired owner/group. Reported by David Malone. Also reported in 1999 as http://bugs.debian.org/39642. (change_file_owner): When --dereference has been specified, and when processing a symlink, stat it to get the owner and group of the referent.
2004-05-16*** empty log message ***Jim Meyering
2004-05-16In shred, check for errors from fdatasync more carefully. IfJim Meyering
fdatasync fails with errno==EINVAL, it means this implementation does not support synchronized I/O for this file. Do not report this as an error, as (for example) AIX 5.2 fdatasync reports it for raw disk devices. Problem reported by Albert Chin in <http://mail.gnu.org/archive/html/bug-gnu-utils/2004-05/msg00028.html>. Check for write errors, though: the old code ignored them. Improve error checking in a few other cases, too (e.g., close of a directory). Also, change several 'int' values to 'bool', so that the error checking is a bit clearer. Similarly, change unsigned values to size_t where appropriate. * src/shred.c: Include "dirname.h". (datasync) [!HAVE_FDATASYNC]: Remove. (dosync): New function. (dopass): Use it. Return 1 on write error, -1 on other error. All callers changed. Report write error if dosync does. (do_wipefd, wipefd, wipename, wipefile): Return bool (true/false), not int (0/-1). All callers changed. Return false if there's a write error. (incname): Return bool (true/false), not int (0/1). Accept size_t length, not unsigned. All callers changed. Do not bother checking for non-digits; it can't happen. Replace recursion with iteration. (wipename): Use dir_name, base_name, etc. instead of assuming Unix file names. Use size_t for length, not unsigned. Report error if unlink or close fails. (wipename, main): Use bool for booleans. (names): Use only digits and uppercase letters, for greater portability.
2004-05-16*** empty log message ***Jim Meyering
2004-05-16*** empty log message ***Jim Meyering
2004-05-16(TESTS): Add deref.Jim Meyering
2004-05-16New test for the yesterday's change.Jim Meyering
2004-05-15*** empty log message ***Jim Meyering
2004-05-15.Jim Meyering
2004-05-14(AD_pop_and_chdir): Eliminate an unnecessary call to AC_stack_top.Jim Meyering
2004-05-14.Jim Meyering
2004-05-14*** empty log message ***Jim Meyering
2004-05-14Improve performance of `sort -m' on large files, at the cost ofJim Meyering
making some contrived examples unsafe. POSIX allows this optimization. Performance problem reported by Jonathan Baker in <http://mail.gnu.org/archive/html/bug-coreutils/2004-05/msg00071.html>. (first_same_file): Do not treat input pipes differently from other files.
2004-05-14Document that "sort -m -o F" might write F before reading all the input.Jim Meyering
2004-05-14*** empty log message ***Jim Meyering
2004-05-14(sort invocation): Document that "sort -m -o F"Jim Meyering
might write F before reading all the input.
2004-05-14*** empty log message ***Jim Meyering
2004-05-14*** empty log message ***Jim Meyering
2004-05-14Fix typo: s/supercede/supersede/.Jim Meyering