mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
* command.c (shell_escape): Report errors correctly (with error
message from strerror).
This commit is contained in:
@@ -1216,8 +1216,10 @@ shell_escape (arg, from_tty)
|
||||
else
|
||||
execl (user_shell, p, "-c", arg, 0);
|
||||
|
||||
fprintf_unfiltered (gdb_stderr, "Exec of shell failed\n");
|
||||
exit (0);
|
||||
fprintf_unfiltered (gdb_stderr, "Cannot execute %s: %s\n", user_shell,
|
||||
safe_strerror (errno));
|
||||
gdb_flush (gdb_stderr);
|
||||
_exit (0177);
|
||||
}
|
||||
|
||||
if (pid != -1)
|
||||
|
||||
Reference in New Issue
Block a user