summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-09-26 23:03:53 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-09-26 23:03:53 +0000
commitb115bf4d442e48310a3626d26e8c42167ed8fb4b (patch)
treea8f80f464e362759091366fb39f1c339265cf95a
parent4b2dd7730a3b771c6509aedd34fdbdb0f699d501 (diff)
downloadcoreutils-b115bf4d442e48310a3626d26e8c42167ed8fb4b.tar.xz
Test "touch -" too, and change "touch -c - >&-" so that it does not
report an error, since that's more logical.
-rw-r--r--ChangeLog13
1 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 32a653655..d2117c0aa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,18 @@
-2005-09-26 Jim Meyering <jim@meyering.net>
+2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
* Version 5.3.1-cvs.
+ * src/touch.c (touch): Handle "touch -c - >&-" by checking for EBADF
+ and ENOSYS.
+ Do not pass "-" to futimens; pass NULL instead.
+ If close (STDIN_FILENO) fails, report the error separately instead
+ of letting the 'close' pollute errno.
+ * tests/touch/empty-file: Test "touch -" too.
+ * tests/touch/no-create-missing: Likewise.
+ * tests/touch/read-only: Likewise.
+
+2005-09-26 Jim Meyering <jim@meyering.net>
+
* tests/touch/read-only: New test, for root of chmod/usage failure.
* tests/touch/Makefile.am (TESTS): Add read-only.