File: 01_199285_fix.dpatch

package info (click to toggle)
simpleproxy 3.2-3sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 296 kB
  • ctags: 79
  • sloc: sh: 2,786; ansic: 1,151; makefile: 92
file content (36 lines) | stat: -rw-r--r-- 1,045 bytes parent folder | download | duplicates (3)
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
#! /bin/sh -e
## 01_199285_fix.dpatch by Andrew Pollock <apollock@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fixes byte swap problem on bigendian architectures

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

if [ $# -ne 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi
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 -u simpleproxy-3.2.orig/simpleproxy.c simpleproxy-3.2/simpleproxy.c
--- simpleproxy-3.2.orig/simpleproxy.c	Mon Mar 10 05:41:17 2003
+++ simpleproxy-3.2/simpleproxy.c	Sun Nov  9 08:46:58 2003
@@ -606,7 +606,7 @@
             atoi(tmp):
             (((se = getservbyname(tmp, "tcp")) == nil)?
              -1:
-             se->s_port);
+             ntohs(se->s_port));
     }
 }