Fix for hardy uploaded, waiting for Steve to accept now.

For the record, the upstream test suite still passes with the patch
applied, and the SRU test case now succeeds for me.

** Description changed:

  Binary package hint: logrotate
  
  When a package is removed, but not purged, "missingok" usually prevents
  logrotate from complaining about missing files. That has regressed a
  while ago, see Debian bug for details.
+ 
+ --
+ 
+ SRU justification: Any logrotate.d/* file with a nonexisting log
+ directory breaks complete log rotation.
+ 
+ Test case:
+ 
+ Create a logrotate snippet with nonexisting file:
+ 
+     echo -e '/var/log/nonexisting/*.log {\n daily\n missingok\n}' | sudo
+ tee /etc/logrotate.d/foo
+ 
+ Now check log rotation with
+ 
+     logrotate -d -f /etc/logrotate.conf
+ 
+ With the broken package, it stops at foo, without processing any further
+ files:
+ 
+   [...]
+   reading config file foo
+   error: error accessing /var/log/nonexisting: No such file or directory
+   error: foo:1 glob failed for /var/log/nonexisting/*.log
+   # exit code 1
+ 
+ With the fixed package, it still logs the glob error, but goes on:
+ 
+   [...]
+   reading config file foo
+   error: error accessing /var/log/nonexisting: No such file or directory
+   error: foo:1 glob failed for /var/log/nonexisting/*.log
+   reading config info for /var/log/nonexisting/*.log 
+   reading config file ppp
+   [...]

** Changed in: logrotate (Ubuntu Hardy)
       Status: Confirmed => In Progress

-- 
missingok does not work
https://bugs.launchpad.net/bugs/256891
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to