mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-03 10:20:49 +02:00
fix for line numbers for nested function declarations; fix execve error for ENOENT
This commit is contained in:
+11
-7
@@ -5983,11 +5983,6 @@ shell_execve (command, args, env)
|
||||
errno = i;
|
||||
file_error (command);
|
||||
}
|
||||
else if (i == ENOENT)
|
||||
{
|
||||
errno = i;
|
||||
internal_error (_("%s: cannot execute: required file not found"), command);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* The file has the execute bits set, but the kernel refuses to
|
||||
@@ -6015,9 +6010,18 @@ shell_execve (command, args, env)
|
||||
FREE (interp);
|
||||
return (EX_NOEXEC);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
errno = i;
|
||||
file_error (command);
|
||||
if (i == ENOENT)
|
||||
{
|
||||
errno = i;
|
||||
internal_error (_("%s: cannot execute: required file not found"), command);
|
||||
}
|
||||
else
|
||||
{
|
||||
errno = i;
|
||||
file_error (command);
|
||||
}
|
||||
}
|
||||
return (last_command_exit_value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user