]> git.ipfire.org Git - thirdparty/coreutils.git/commit
(touch): Handle "touch -c - >&-" by checking for EBADF
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 26 Sep 2005 23:02:14 +0000 (23:02 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 26 Sep 2005 23:02:14 +0000 (23:02 +0000)
commit2f897e72580eb68526972caf3ef815c5be50daba
tree1060decdf2fdb4e20562c150a787a9a763d47abc
parent80065b498ba12f0cc5326e08c2650104ae1d3081
(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.
src/touch.c