From: Roy Marples Date: Wed, 5 Mar 2014 11:21:51 +0000 (+0000) Subject: Adjust comment to match expected behaviour X-Git-Tag: v6.3.2~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a98c82a03d8bc27084ded1cdc6f1b304a7651c3f;p=thirdparty%2Fdhcpcd.git Adjust comment to match expected behaviour --- diff --git a/dhcpcd-run-hooks.in b/dhcpcd-run-hooks.in index 06e3417c..ccefc1b6 100644 --- a/dhcpcd-run-hooks.in +++ b/dhcpcd-run-hooks.in @@ -182,8 +182,8 @@ valid_domainname() [ -z "$label" -o ${#label} -gt 63 ] && return 1 case "$label" in -*|_*|*-|*_) return 1;; - # sh seems to break with *[![:alnum:]-_]* - # but works with *[![:alnum:]_-]* + # some sh require - as the first or last character in the class + # when matching it *[![:alnum:]_-]*) return 1;; esac [ "$name" = "${name#*.}" ] && break