summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2017-12-17 17:03:53 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2017-12-17 17:03:53 +0000
commit2dd1cbee30f86750ad346af9b8b7b719e0e7f77f (patch)
tree2aa4d55ed000fcab71d91e798a1c80446219dfe4
parenta6321d72ee159a8198b0527577d1b1c13bafe296 (diff)
allow '-' in usernames
requested and OK aja OK halex@
-rw-r--r--distrib/miniroot/install.sub4
1 files changed, 2 insertions, 2 deletions
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 <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