]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
logrotate: Do not create logrotate.status file
authorJermain Horsman <jermain.horsman@nedap.com>
Mon, 10 Jul 2023 09:23:39 +0000 (11:23 +0200)
committerSteve Sakoman <steve@sakoman.com>
Mon, 17 Jul 2023 14:45:01 +0000 (04:45 -1000)
commitfbfd62ac655cf00b8f7c8fc832ce7434ad4966a3
tree1c92e7164e1ec98ac6b5e438b7da1e836c7a6ae5
parent2d58b38185ca7eed5d885b8d00ca549b57138554
logrotate: Do not create logrotate.status file

The first time logrotate runs it reports an error:

  error: state file /var/lib/logrotate.status is
  world-readable and thus can be locked from other
  unprivileged users. Skipping lock acquisition...

This check was added with
https://github.com/logrotate/logrotate/commit/1f76a381e2caa0603ae3dbc51ed0f1aa0d6658b9

This error is only reported once as logrotate removes
the world-readable permissions if this happens.
Since logrotate creates this file if it does not exist,
there should be no need to install it in the first place.

Signed-off-by: Jermain Horsman <jermain.horsman@nedap.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8169cd2d18f1569e4357f082adbef492710e8c36)
Signed-off-by: Jermain Horsman <jermain.horsman@nedap.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-extended/logrotate/logrotate_3.20.1.bb