Subject: Correct error message when touching non-existent file in non-writeable directory
From: Tollef Fog Heen <tfheen@debian.org>, Raul Miller <moth@debian.org>
Bug-Debian: #43428
Last-updated: 2010-04-04
Index: sash-3.7/cmds.c
===================================================================
--- sash-3.7.orig/cmds.c	2010-04-04 10:58:51.000000000 +0200
+++ sash-3.7/cmds.c	2010-04-04 11:04:55.185955708 +0200
@@ -341,6 +341,11 @@
 			continue;
 		}
 
+		if (errno != EEXIST) {
+			perror(name);
+			continue;
+		}
+
 		if (utime(name, &now) < 0)
 			perror(name);
 	}
