summaryrefslogtreecommitdiff
path: root/system/shadow/dots-in-usernames.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/shadow/dots-in-usernames.patch')
-rw-r--r--system/shadow/dots-in-usernames.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/shadow/dots-in-usernames.patch b/system/shadow/dots-in-usernames.patch
new file mode 100644
index 000000000..b684c9d02
--- /dev/null
+++ b/system/shadow/dots-in-usernames.patch
@@ -0,0 +1,11 @@
+--- shadow-4.1.3/libmisc/chkname.c
++++ shadow-4.1.3/libmisc/chkname.c
+@@ -66,6 +66,7 @@
+ ( ('0' <= *name) && ('9' >= *name) ) ||
+ ('_' == *name) ||
+ ('-' == *name) ||
++ ('.' == *name) ||
+ ( ('$' == *name) && ('\0' == *(name + 1)) )
+ )) {
+ return false;
+