wok-next view zonecheck/stuff/patches/25param-rb.patch @ rev 21312
inkscape: added build dependency dbus-glib-dev
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 10 15:00:13 2019 +0100 (2019-12-10) |
parents | |
children |
line source
1 #!/bin/sh -e
2 ## by Arnaud Cornet <arnaud.cornet@gmail.com>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Fixes locale handling in case there is a trailing @\w+ at the
6 ## DP: end of the locale name (like in fr_FR@euro)
8 if [ $# -lt 1 ]; then
9 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
10 exit 1
11 fi
13 [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
14 patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
16 case "$1" in
17 -patch) patch $patch_opts -p1 < $0;;
18 -unpatch) patch $patch_opts -p1 -R < $0;;
19 *)
20 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
21 exit 1;;
22 esac
24 exit 0
26 diff -puriN zonecheck-2.0.4.orig/zc/param.rb zonecheck-2.0.4/zc/param.rb
27 --- zonecheck-2.0.4.orig/zc/param.rb 2007-04-06 11:58:50.000000000 +0200
28 +++ zonecheck-2.0.4/zc/param.rb 2007-04-06 11:59:08.000000000 +0200
29 @@ -523,7 +523,7 @@ class Param
30 end
32 def local=(resolv)
33 - resolv = resolv.clone.untaint if resolv.tainted?
34 + resolv = resolv.dup.untaint if resolv.tainted?
35 @local_name = if resolv.nil? || resolv =~ /^\s*$/
36 then nil
37 else resolv