summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-06-14 23:58:00 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-06-14 23:58:00 +0000
commitf2c653e8dfc14a8adaef31947afa7ae084e6cd79 (patch)
tree5fa6fb6511079b71144ecd9896997be5d3390b67 /lib
parent153854cc31f33964cfe59d880fc93e649cf874bb (diff)
downloadcoreutils-f2c653e8dfc14a8adaef31947afa7ae084e6cd79.tar.xz
Improve diagnostics for restore_cwd failure.
Diffstat (limited to 'lib')
-rw-r--r--lib/ChangeLog8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index fabf69028..2e0854e91 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,5 +1,13 @@
2005-06-14 Paul Eggert <eggert@cs.ucla.edu>
+ Improve quality of diagnostics on restore_cwd failure.
+ * mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
+ (make_dir_parents): Last arg is now int * (for errno), not bool *.
+ * mkdir-p.c (make_dir, make_dir_parents): Likewise.
+ Rewrite "mkdir -p" algorithm to avoid the need for "stat"
+ each time through the loop. Do not diagnose restore_cwd failure;
+ that is the caller's job (and perhaps the caller does not care).
+
* mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
(make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
If the file already exists but is not a directory, don't bother