mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 14:42:54 +01:00
Sanitize username in logs
This commit is contained in:
1 parent
83e7425e74
commit
34c28d7bc9
2 files changed
+30
-22
No files matched your search
+2
-4
@@ -298,14 +298,12 @@ return_to_dzg(){
|
||||
cleanup
|
||||
else
|
||||
$(cd $HOME/.local/share/dzgui/helpers; zenity --text-info --html --width=390 --height=452 --filename="d.html" 2>/dev/null)
|
||||
return 0
|
||||
cleanup
|
||||
fi
|
||||
}
|
||||
cleanup(){
|
||||
tput cnorm
|
||||
cp $helpers_path/SCMD.log $helpers_path/SCMD.log.bk
|
||||
grep -v "Logging in user" $helpers_path/SCMD.log.bk > $helpers_path/SCMD.log
|
||||
rm $helpers_path/SCMD.log.bk
|
||||
sed -i "s/Logging in user '.*'/Logging in user XXX/" $helpers_path/SCMD.log
|
||||
exit
|
||||
}
|
||||
abort(){
|
||||
|
||||
Reference in new issue
Block a user