Subject: Don't check permissions before trying to execute a command
From: Unknown
Last-updated: 2010-04-04
Index: sash-3.7/sash.c
===================================================================
--- sash-3.7.orig/sash.c	2010-04-04 10:12:57.228978742 +0200
+++ sash-3.7/sash.c	2010-04-04 10:13:04.008985124 +0200
@@ -1172,13 +1172,6 @@
 
 	name = argv[1];
 
-	if (access(name, 4))
-	{
-		perror(name);
-
-		return;
-	}
-
 	while (--sourceCount >= 0)
 	{
 		if (sourcefiles[sourceCount] != stdin)
@@ -1188,7 +1181,7 @@
 	argv[argc] = NULL;
 
 	execvp(name, (char **) argv + 1);
-	exit(1);
+	perror(name);
 }
 
 
