]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
logrotate: Do not create logrotate.status file
authorJermain Horsman <jermain.horsman@nedap.com>
Thu, 22 Jun 2023 14:04:52 +0000 (16:04 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Jun 2023 11:19:52 +0000 (12:19 +0100)
commit8169cd2d18f1569e4357f082adbef492710e8c36
tree25036aea24346f41aa58222d7d7a877c8b6baac4
parentd606ad5c237d0e28f09f0aa783e83846cbca8d21
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>
meta/recipes-extended/logrotate/logrotate_3.21.0.bb