diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-04-09 15:57:20 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-04-09 15:57:20 -0700 |
commit | f1250933e4a2ac09a3d0b25b3877068e12f44da5 (patch) | |
tree | 2781c695ae6681db41e3a1d2445032a5d005d22e /parse.y | |
parent | e2632a15614446a50d7ee37259103b9dbc58abfd (diff) | |
download | vyatta-bash-f1250933e4a2ac09a3d0b25b3877068e12f44da5.tar.gz vyatta-bash-f1250933e4a2ac09a3d0b25b3877068e12f44da5.zip |
Fix command auditing to work right
The command auditing patch had a number of issues:
* was looking at shell_input_line rather than what user entered
* reopened audit file descriptor on each command
* left audit_fd dangling in child
* looked up tty on each command
It still does getcwd() on each command but that probably can't be helped.
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -263,7 +263,7 @@ int need_here_doc; /* Where shell input comes from. History expansion is performed on each line when the shell is interactive. */ -char *shell_input_line = (char *)NULL; +static char *shell_input_line = (char *)NULL; static int shell_input_line_index; static int shell_input_line_size; /* Amount allocated for shell_input_line. */ static int shell_input_line_len; /* strlen (shell_input_line) */ |