Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 15867dba9c8671c76a9430f655f73d62 > files > 1

coreutils-6.9-5mdv2008.0.src.rpm

--- ./src/touch.c.kk	2003-02-13 15:00:29.000000000 +0100
+++ ./src/touch.c	2003-02-13 15:02:09.000000000 +0100
@@ -165,7 +165,7 @@
 	 or FILE is inaccessible or a directory, so we have to use stat.  */
       if (fd != -1 ? fstat (fd, &sbuf) : stat (file, &sbuf))
 	{
-	  if (open_errno)
+      if (open_errno && open_errno != EISDIR)
 	    error (0, open_errno, _("creating %s"), quote (file));
 	  else
 	    {