ktest.pl: Fix the logic for truncating the size of the log file for email
stable inclusion from stable-5.10.2 commit 2902e302991a4dacd155658bcb3053e4d6b7d4a0 bugzilla: 46859 -------------------------------- commit 170f4869 upstream. The logic for truncating the log file for emailing based on the MAIL_MAX_SIZE option is confusing and incorrect. Simplify it and have the tail of the log file truncated to the max size specified in the config. Cc: stable@vger.kernel.org Fixes: 855d8abd ("ktest.pl: Change the logic to control the size of the log file emailed") Signed-off-by: NSteven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: NXie XiuQi <xiexiuqi@huawei.com> Signed-off-by: NChen Jun <chenjun102@huawei.com>
Showing
想要评论请 注册 或 登录