From baef38bda137319a0593bfb57c41e0e6e1d95200 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 20 Oct 2001 19:13:41 +0000 Subject: *** empty log message *** --- src/touch.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/touch.c b/src/touch.c index 517ec8481..e3871c6e2 100644 --- a/src/touch.c +++ b/src/touch.c @@ -145,8 +145,9 @@ touch (const char *file) /* Don't save a copy of errno if it's EISDIR, since that would lead touch to give a bogus diagnostic for e.g., `touch /' (assuming - we don't own / or have write access to it). */ - if (fd == -1 && errno != EISDIR) + we don't own / or have write access to it). On Solaris 5.6, + and probably other systems, it is EINVAL. */ + if (fd == -1 && errno != EISDIR && errno != EINVAL) open_errno = errno; } -- cgit v1.2.3-54-g00ecf