~ubuntu-branches/ubuntu/edgy/logrotate/edgy

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/sh -e
## 03-configparse.dpatch by Paul Martin <pm@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

if [ $# -lt 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi

[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"

case "$1" in
       -patch) patch $patch_opts -p1 < $0;;
       -unpatch) patch $patch_opts -p1 -R < $0;;
        *)
                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
                exit 1;;
esac

exit 0

@DPATCH@
diff -urNad /home/pm/deb/logrotate/logrotate-3.7/config.c logrotate-3.7/config.c
--- /home/pm/deb/logrotate/logrotate-3.7/config.c	2004-02-11 18:17:16.000000000 +0000
+++ logrotate-3.7/config.c	2004-02-11 18:19:12.000000000 +0000
@@ -745,7 +745,7 @@
 
 		    while (*start) {
 			chptr = start;
-			while (!isspace(*chptr) && *chptr != ',' && *chptr)
+			while (!isspace(*chptr) && /* *chptr != ',' && */ *chptr)
 			    chptr++;
 
 			tabooExts = realloc(tabooExts, sizeof(*tabooExts) * 
@@ -757,7 +757,7 @@
 			tabooCount++;
 
 			start = chptr;
-			if (*start == ',') start++;
+			/* if (*start == ',') start++; */
 			while (isspace(*start) && *start) start++;
 		    }