Skip to content

Commit

Permalink
do not write USERPW into log
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed May 19, 2020
1 parent 5ca64da commit 0a8c4b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/subroutines
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ task_defvar() {
fi
unset class svar
# now all variables are defined. Dump them to variables.log, so we can sources them if needed
set | perl -ne 'print if /^\w\w+=/ and not /^(EUID|PPID|SHELLOPTS|UID|rootpw|ROOTPW|HOME|PWD|BASHOPTS)|\(/' > $LOGDIR/variables.log
set | perl -ne 'print if /^\w\w+=/ and not /^(EUID|PPID|SHELLOPTS|UID|rootpw|ROOTPW|USERPW|HOME|PWD|BASHOPTS)|\(/' > $LOGDIR/variables.log
# another approach is to use this. A slightly different format, but seems to be robust.
# declare -x > $LOGDIR/variables.log
cd $odir
Expand Down

0 comments on commit 0a8c4b6

Please sign in to comment.