Merge lp:~davewalker/ubuntu/lucid/logrotate/lp387189 into lp:ubuntu/lucid/logrotate

Proposed by Dave Walker
Status: Rejected
Rejected by: Steve Langasek
Proposed branch: lp:~davewalker/ubuntu/lucid/logrotate/lp387189
Merge into: lp:ubuntu/lucid/logrotate
Diff against target: 74 lines (+54/-0)
3 files modified
debian/changelog (+8/-0)
debian/patches/parser571033.patch (+45/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~davewalker/ubuntu/lucid/logrotate/lp387189
Reviewer Review Type Date Requested Status
Chuck Short (community) Approve
Ubuntu Stable Release Updates Team Pending
Review via email: mp+48163@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Chuck Short (zulcss) wrote :

Looks good to me

review: Approve

Unmerged revisions

15. By Dave Walker

debian/patches/parser571033.patch: Fix the config parser to not get
confused when a wildcard produces no results, which caused /dev/null
to be rotated. (LP: #387189)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2010-03-07 00:56:16 +0000
3+++ debian/changelog 2011-02-01 14:26:30 +0000
4@@ -1,3 +1,11 @@
5+logrotate (3.7.8-4ubuntu2.1) lucid-proposed; urgency=low
6+
7+ * debian/patches/parser571033.patch: Fix the config parser to not get
8+ confused when a wildcard produces no results, which caused /dev/null
9+ to be rotated. (LP: #387189)
10+
11+ -- Dave Walker (Daviey) <DaveWalker@ubuntu.com> Tue, 01 Feb 2011 13:51:08 +0000
12+
13 logrotate (3.7.8-4ubuntu2) lucid; urgency=low
14
15 * rebuild rest of main for armel armv7/thumb2 optimization;
16
17=== added file 'debian/patches/parser571033.patch'
18--- debian/patches/parser571033.patch 1970-01-01 00:00:00 +0000
19+++ debian/patches/parser571033.patch 2011-02-01 14:26:30 +0000
20@@ -0,0 +1,45 @@
21+Description: Fix the config parser to not get confused when a wildcard produces no
22+ results, which caused /dev/null to be rotated. (LP: #387189)
23+Author: Paul Martin <pm@debian.org>
24+Origin: Cherry picked from package version, >= 3.7.8-6.
25+Bug-Ubuntu: https://launchpad.net/bugs/387189
26+Bug-Debian: http://bugs.debian.org/571033
27+--- a/config.c
28++++ b/config.c
29+@@ -574,9 +574,34 @@
30+ configFile, lineNum);
31+ return 1;
32+ } else if (*start == '\n') {
33+- lineNum++;
34++ while (isspace(*start) && (*start)) {
35++ if (*start == '\n')
36++ lineNum++;
37++ start++;
38++ }
39++ } else if (
40++ (strncmp(start, "postrotate", 10) == 0) ||
41++ (strncmp(start, "prerotate", 9) == 0) ||
42++ (strncmp(start, "firstrotate", 11) == 0) ||
43++ (strncmp(start, "lastrotate", 10) == 0)
44++ )
45++ {
46++ while (*start) {
47++ while ((*start != '\n') && (*start))
48++ start++;
49++ while (isspace(*start) && (*start)) {
50++ if (*start == '\n')
51++ lineNum++;
52++ start++;
53++ }
54++ if (strncmp(start, "endscript", 9) == 0) {
55++ start += 9;
56++ break;
57++ }
58++ }
59++ } else {
60++ start++;
61+ }
62+- start++;
63+ }
64+ start++;
65+
66
67=== modified file 'debian/patches/series'
68--- debian/patches/series 2009-08-16 12:40:24 +0000
69+++ debian/patches/series 2011-02-01 14:26:30 +0000
70@@ -16,3 +16,4 @@
71 create-388608.patch
72 nofollow.patch
73 security-388608.patch
74+parser571033.patch

Subscribers

People subscribed via source and target branches

to all changes: