]> git.ipfire.org Git - thirdparty/coreutils.git/commit
touch: fix wrong diagnostic (Bug#48106)
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 1 May 2021 22:19:16 +0000 (15:19 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 1 May 2021 22:47:13 +0000 (15:47 -0700)
commitd435cfc0bc554b8baef2e690e138e27ac1b4d5b1
tree8716fceec4c63bc17831479f945d7e058986307d
parent62a7ce5f503c4a7f8bb410f0cc10fefab106a4d2
touch: fix wrong diagnostic (Bug#48106)

Problem reported by Roland (Bug#48106).
* src/touch.c (touch): Take more care when deciding whether
to use open_errno or utime_errno in the diagnostic.
Stop worrying about SunOS 4 (which as part of the problem),
as it’s long obsolete.  For Solaris 10, verify that EINVAL
really means the file was a directory.
src/touch.c