From: Paul Eggert Date: Mon, 9 Aug 2004 23:35:15 +0000 (+0000) Subject: Improve code to work in some cases when files are writeable but not readable. X-Git-Tag: v5.3.0~818 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f305d3a224827814d56a4a328b01fcee9daa7d01;p=thirdparty%2Fcoreutils.git Improve code to work in some cases when files are writeable but not readable. --- diff --git a/ChangeLog b/ChangeLog index ecb31b80bb..16e2860e10 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2004-08-09 Paul Eggert + * src/shred.c (wipename): Work even if the directory is writeable + and not readable. Prefer write access, since this should work + better with fdatasync. + * src/csplit.c (xalloc_die): New function. (main): Remove now-obsolete initialization of xalloc_fail_func. diff --git a/lib/ChangeLog b/lib/ChangeLog index c7a35cab6c..a4cb4918df 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,6 +1,15 @@ 2004-08-09 Paul Eggert - * xalloc-die.c: New files. + * chown.c (rpl_chown): Work even if the file is writeable but not + readable. This could be improved further but it'd take some work. + * fts.c (diropen): New function. + (fts_open, fts_read, fts_children, fts_safe_changedir): + Use it, so that the code works even if the directory + is writeable but not readable. We'd like it to work even if + the directory is merely executable, but I don't know how to do + that portably. + + * xalloc-die.c: New file. * xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove. All uses removed. * xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted): Likewise.