aboutsummaryrefslogtreecommitdiff
path: root/net/misc/monkeysphere/monkeysphere-0.28.diff
blob: 0a26a2f9a8aaa93e11da3788330f7c40637eea22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -Naur monkeysphere-0.28.orig/src/share/common monkeysphere-0.28/src/share/common
--- monkeysphere-0.28.orig/src/share/common	2010-01-19 06:02:02.000000000 -0200
+++ monkeysphere-0.28/src/share/common	2010-02-18 14:02:55.000000000 -0200
@@ -444,7 +444,7 @@
 # return 1 if there was an error in the search somehow
 get_port_for_service() {
 
-    [[ "$1" =~ ^[a-z0-9]([a-z0-9-]*[a-z0-9])?$ ]] || \
+    [[ "$1" =~ "^[a-z0-9]([a-z0-9-]*[a-z0-9])?$" ]] || \
         failure $(printf "This is not a valid service name: '%s'" "$1")
     if type getent &>/dev/null ; then
         # for linux and FreeBSD systems (getent returns 2 if not found, 0 on success, 1 or 3 on various failures)