aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-08-09 23:35:15 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-08-09 23:35:15 +0000
commitf305d3a224827814d56a4a328b01fcee9daa7d01 (patch)
tree3f70dbb73da42b33cca9ce65e658c70211741b9a
parent(wipename): Work even if the directory is writeable (diff)
downloadcoreutils-f305d3a224827814d56a4a328b01fcee9daa7d01.tar.gz
coreutils-f305d3a224827814d56a4a328b01fcee9daa7d01.zip
Improve code to work in some cases when files are writeable but not readable.
-rw-r--r--ChangeLog4
-rw-r--r--lib/ChangeLog11
2 files changed, 14 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ecb31b80b..16e2860e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
+ * 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 c7a35cab6..a4cb4918d 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,6 +1,15 @@
2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
- * 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.