allow '-' in usernames
authorrpe <rpe@openbsd.org>
Sun, 17 Dec 2017 17:03:52 +0000 (17:03 +0000)
committerrpe <rpe@openbsd.org>
Sun, 17 Dec 2017 17:03:52 +0000 (17:03 +0000)
requested and OK aja
OK halex@

distrib/miniroot/install.sub

index 5dbf641..4b7c76c 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/ksh
-#      $OpenBSD: install.sub,v 1.1045 2017/12/01 18:19:30 tb Exp $
+#      $OpenBSD: install.sub,v 1.1046 2017/12/17 17:03:52 rpe Exp $
 #
 # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback
 # Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org>
@@ -2052,7 +2052,7 @@ user_setup() {
                        ;;
                root|daemon|operator|bin|build|sshd|www|nobody|ftp)
                        ;;
-               [a-z]*([a-z0-9_]))
+               [a-z]*([-a-z0-9_]))
                        ((${#resp} <= 31)) && break
                        ;;
                esac