mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-06 10:12:38 +02:00
commit bash-20081120 snapshot
This commit is contained in:
+1
-2
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user