From: Jim Meyering Date: Sun, 16 May 2004 19:32:37 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: v5.3.0~1547 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=23e13a64a8d318bf8632c763399b1546709f8cc9;p=thirdparty%2Fcoreutils.git *** empty log message *** --- diff --git a/ChangeLog b/ChangeLog index fee837f43b..e24a404f7d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,44 @@ -2004-05-16 Jim Meyering +2004-05-15 Paul Eggert * Version 5.3.0. + In shred, check for errors from fdatasync more carefully. If + 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 + . + + 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 Jim Meyering + * tests/chown/deref: New test for the yesterday's change. * tests/chown/Makefile.am (TESTS): Add deref.