Sanitize username in logs

This commit is contained in:
aclist committed 2022-10-08 16:29:06 +09:00
1 parent 83e7425e74
commit 34c28d7bc9
2 files changed
+30 -22

No files matched your search

+2 -4
View File
@@ -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(){