File: 11_parserloop.dpatch

package info (click to toggle)
solid-pop3d 0.15-18
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 880 kB
  • ctags: 443
  • sloc: ansic: 6,085; sh: 4,619; makefile: 519
file content (37 lines) | stat: -rw-r--r-- 1,027 bytes parent folder | download | duplicates (4)
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
#!/bin/sh -e
## 11_parserloop.dpatch by Robert Luberda <robert@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP:  Fix infinite loop in expand_dir (backpotred from 0.16d).

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 solid-pop3d.old/src/main.c solid-pop3d/src/main.c
--- solid-pop3d.old/src/main.c	2004-01-28 00:07:51.000000000 +0100
+++ solid-pop3d/src/main.c	2004-01-28 00:07:52.000000000 +0100
@@ -345,6 +345,8 @@
 				tmp = tmp2 + 3;
 				break;
 			default: ;
+				breakwhile = 1;
+				break; 
 		};
 		if (breakwhile)
 			break;