]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Improve code to work in some cases when files are writeable but not readable.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 9 Aug 2004 23:35:15 +0000 (23:35 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 9 Aug 2004 23:35:15 +0000 (23:35 +0000)
ChangeLog
lib/ChangeLog

index ecb31b80bb8e5931bb1670293aafbcd1ae8561de..16e2860e10c7fb0e316b497c08b2e0c971397671 100644 (file)
--- 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.
 
index c7a35cab6ceae3548555614cbf18ce93d5bf427e..a4cb4918df1ca74af64340cda0b2b19b13764a37 100644 (file)
@@ -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.