From: Daniel Kahn Gillmor Date: Thu, 18 Feb 2010 23:25:29 +0000 (-0500) Subject: allow service names to start with a number (synchronizing with the check in get_port_... X-Git-Tag: monkeysphere_0.29~38 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=f622b34f586d9c5d091c975291e5c932af44949a;p=monkeysphere.git allow service names to start with a number (synchronizing with the check in get_port_for_service from common). i know of no services named like that, but why be fussy? --- diff --git a/src/monkeysphere-host b/src/monkeysphere-host index d89febb..12e7bad 100755 --- a/src/monkeysphere-host +++ b/src/monkeysphere-host @@ -147,7 +147,7 @@ Service names should use fully-qualified domain names (FQDN), but the domain name you chose appears to only have the local part. For example: don't use 'ssh://foo' ; use 'ssh://foo.example.com' instead." - [[ "$name" =~ ^[a-z]([a-z0-9-]*[a-z0-9])?://[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.|((\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+))(:[1-9][0-9]{0,4})?$ ]] || \ + [[ "$name" =~ ^[a-z0-9]([a-z0-9-]*[a-z0-9])?://[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.|((\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+))(:[1-9][0-9]{0,4})?$ ]] || \ failure "Not a valid service name: '$name' Service names look like ://full.example.com[:],