From: rpe Date: Sun, 17 Dec 2017 17:03:52 +0000 (+0000) Subject: allow '-' in usernames X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d72cf30c0c896d1df47ffb46179ad43f32be5fe3;p=openbsd allow '-' in usernames requested and OK aja OK halex@ --- diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 5dbf641851b..4b7c76c8295 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -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 @@ -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