summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-04-09 15:57:20 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-04-09 15:57:20 -0700
commitf1250933e4a2ac09a3d0b25b3877068e12f44da5 (patch)
tree2781c695ae6681db41e3a1d2445032a5d005d22e /parse.y
parente2632a15614446a50d7ee37259103b9dbc58abfd (diff)
downloadvyatta-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.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index a179c93..4fe354f 100644
--- a/parse.y
+++ b/parse.y
@@ -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) */