Skip to content

Commit

Permalink
Allow hyphen-characters within usernames.
Browse files Browse the repository at this point in the history
  • Loading branch information
cybe committed Dec 19, 2016
1 parent 0d3f4fa commit f60bca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sshpiperd/workingdir.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var (
func init() {
// http://stackoverflow.com/questions/6949667/what-are-the-real-rules-for-linux-usernames-on-centos-6-and-rhel-6
// #NAME_REGEX="^[a-z][-a-z0-9_]*\$"
usernameRule, _ = regexp.Compile("^[a-z_][a-z0-9_]{0,30}$")
usernameRule, _ = regexp.Compile("^[a-z_][a-z0-9_-]{0,30}$")
}

func userSpecFile(user, file string) string {
Expand Down

0 comments on commit f60bca1

Please sign in to comment.