commit bash-20081120 snapshot

This commit is contained in:
Chet Ramey
2011-12-07 09:32:44 -05:00
parent f11997f858
commit a9fac3b2a8
88 changed files with 9351 additions and 8927 deletions
+1 -2
View File
@@ -4549,7 +4549,6 @@ shell_execve (command, args, env)
char *command;
char **args, **env;
{
struct stat finfo;
int larray, i, fd;
char sample[80];
int sample_len;
@@ -4564,7 +4563,7 @@ shell_execve (command, args, env)
Maybe it is something we can hack ourselves. */
if (i != ENOEXEC)
{
if ((stat (command, &finfo) == 0) && (S_ISDIR (finfo.st_mode)))
if (file_isdir (command))
internal_error (_("%s: is a directory"), command);
else if (executable_file (command) == 0)
{