diff options
author | rhatto <rhatto@18ef50b8-d735-4ccd-97c1-689132df3dd9> | 2010-02-18 16:06:16 +0000 |
---|---|---|
committer | rhatto <rhatto@18ef50b8-d735-4ccd-97c1-689132df3dd9> | 2010-02-18 16:06:16 +0000 |
commit | 37f13b3e474645ba3db314788f14c8c54a53ad08 (patch) | |
tree | b25cecf525c97643b6a4b84dc903626c293e7d05 /net/misc/monkeysphere/monkeysphere-0.28.diff | |
parent | 35d9a214bb348755a6f3b62b9c5cd4a7d1ae27b7 (diff) | |
download | mkbuilds-37f13b3e474645ba3db314788f14c8c54a53ad08.tar.gz mkbuilds-37f13b3e474645ba3db314788f14c8c54a53ad08.tar.bz2 |
monkeysphere: adding patch for 0.28
git-svn-id: svn+slack://slack.fluxo.info/var/svn/mkbuilds@541 18ef50b8-d735-4ccd-97c1-689132df3dd9
Diffstat (limited to 'net/misc/monkeysphere/monkeysphere-0.28.diff')
-rw-r--r-- | net/misc/monkeysphere/monkeysphere-0.28.diff | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/misc/monkeysphere/monkeysphere-0.28.diff b/net/misc/monkeysphere/monkeysphere-0.28.diff new file mode 100644 index 0000000..0a26a2f --- /dev/null +++ b/net/misc/monkeysphere/monkeysphere-0.28.diff @@ -0,0 +1,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) |