]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Adjust comment to match expected behaviour
authorRoy Marples <roy@marples.name>
Wed, 5 Mar 2014 11:21:51 +0000 (11:21 +0000)
committerRoy Marples <roy@marples.name>
Wed, 5 Mar 2014 11:21:51 +0000 (11:21 +0000)
dhcpcd-run-hooks.in

index 06e3417ccf358782ff9b11ef0a92860d2db7928f..ccefc1b6941771d0b4f41138ff8459eee5ab7dae 100644 (file)
@@ -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