default state file location is wrong in manpage

Bug #772214 reported by Sergey Svishchev
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
logrotate (Debian)
Fix Released
Unknown
logrotate (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: logrotate

manpage says that /var/lib/logrotate.status is the default state file, but it's actually /var/lib/logrotate/status

Related branches

Revision history for this message
Sly (netrefuge) wrote :

What version of Ubuntu are you using?

man logrotate
----
       -s, --state <statefile>
              Tells logrotate to use an alternate state file. This is useful
              if logrotate is being run as a different user for various sets
              of log files. The default state file is /var/lib/logrotate/sta‐
              tus.
----

Shows correctly for me on Natty Beta 2.

Please add more detail into your report.

Revision history for this message
Sergey Svishchev (svs) wrote :

Lucid 10.04.2

---
FILES
       /var/lib/logrotate.status Default state file.
       /etc/logrotate.conf Configuration options.
---

Revision history for this message
Sly (netrefuge) wrote :

Thanks for the information. As I'm not on 10.04, I'm not able to confirm this. Someone should be along shortly to confirm and/or ask for more information.

Revision history for this message
Scott Moser (smoser) wrote :

I can verify this fix-released in 3.7.8-6ubuntu5 (oneiric), so marking it as such.

Changed in logrotate (Ubuntu):
importance: Undecided → Low
status: New → Fix Released
Revision history for this message
Scott Moser (smoser) wrote :

I've verified that /var/lib/logrotate/status is the correct path, and is listed in the man page on oneiric by doing:
$ sudo strace -ff -o out /etc/cron.daily/logrotate

Grepping through gh the output shows:
stat("/var/lib/logrotate/status", {st_mode=S_IFREG|0644, st_size=391, ...}) = 0
open("/var/lib/logrotate/status", O_RDONLY) = 3

Revision history for this message
Scott Moser (smoser) wrote :

Sorry. I incorrectly marked this as fix-released.
svs pointed out that the bug reported here is that the man page shows:

FILES
       /var/lib/logrotate.status Default state file.
       /etc/logrotate.conf Configuration options.

The '--state' section correctly lists '/var/lib/logrotate/status', but the 'FILES' section is wrong.

Changed in logrotate (Ubuntu):
status: Fix Released → Confirmed
Sergey Svishchev (svs)
no longer affects: server-papercuts
Changed in logrotate (Debian):
status: Unknown → New
Changed in logrotate (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package logrotate - 3.8.7-2ubuntu2

---------------
logrotate (3.8.7-2ubuntu2) wily; urgency=medium

  * debian/patches/manpage.patch: fix state file path in FILES section
    (LP: #772214)

 -- Andrey Bondarenko <email address hidden> Tue, 01 Sep 2015 11:56:43 +0500

Changed in logrotate (Ubuntu):
status: Fix Committed → Fix Released
Changed in logrotate (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.