Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 277509a89486abacadb546916a2aa6b7 > files > 1

coreutils-6.12-2mdv2009.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
 	    {