Rebase patch 506_relaxed_usernames
This commit is contained in:
@@ -15,14 +15,16 @@ Details:
|
||||
than '-' as the leading character). Thus, the maintenance tools don't
|
||||
anymore. closes: #79682, #166798, #171179
|
||||
|
||||
--- a/libmisc/chkname.c
|
||||
+++ b/libmisc/chkname.c
|
||||
@@ -32,44 +32,26 @@
|
||||
Index: shadow/lib/chkname.c
|
||||
===================================================================
|
||||
--- shadow.orig/lib/chkname.c
|
||||
+++ shadow/lib/chkname.c
|
||||
@@ -32,44 +32,27 @@ static bool is_valid_name (const char *n
|
||||
}
|
||||
|
||||
/*
|
||||
- * User/group names must match gnu e-regex:
|
||||
- * [a-zA-Z0-9_.][a-zA-Z0-9_.-]{0,30}[a-zA-Z0-9_.$-]?
|
||||
- * User/group names must match BRE regex:
|
||||
- * [a-zA-Z0-9_.][a-zA-Z0-9_.-]*$\?
|
||||
- *
|
||||
- * as a non-POSIX, extension, allow "$" as the last char for
|
||||
- * sake of Samba 3.x "add machine script"
|
||||
@@ -51,7 +53,7 @@ Details:
|
||||
+ || ('+' == *name)) {
|
||||
return false;
|
||||
}
|
||||
-
|
||||
|
||||
- numeric = isdigit(*name);
|
||||
-
|
||||
- while ('\0' != *++name) {
|
||||
@@ -76,10 +78,12 @@ Details:
|
||||
+ return true;
|
||||
}
|
||||
|
||||
bool is_valid_user_name (const char *name)
|
||||
--- a/man/useradd.8.xml
|
||||
+++ b/man/useradd.8.xml
|
||||
@@ -708,6 +708,14 @@
|
||||
|
||||
Index: shadow/man/useradd.8.xml
|
||||
===================================================================
|
||||
--- shadow.orig/man/useradd.8.xml
|
||||
+++ shadow/man/useradd.8.xml
|
||||
@@ -733,6 +733,14 @@
|
||||
the <command>ls</command> output.
|
||||
</para>
|
||||
<para>
|
||||
@@ -94,8 +98,10 @@ Details:
|
||||
Usernames may only be up to 32 characters long.
|
||||
</para>
|
||||
</refsect1>
|
||||
--- a/man/groupadd.8.xml
|
||||
+++ b/man/groupadd.8.xml
|
||||
Index: shadow/man/groupadd.8.xml
|
||||
===================================================================
|
||||
--- shadow.orig/man/groupadd.8.xml
|
||||
+++ shadow/man/groupadd.8.xml
|
||||
@@ -72,6 +72,12 @@
|
||||
also disallowed.
|
||||
</para>
|
||||
2
debian/patches/series
vendored
2
debian/patches/series
vendored
@@ -10,5 +10,5 @@
|
||||
502_debian_useradd_defaults.patch
|
||||
503_shadowconfig.8
|
||||
505_useradd_recommend_adduser
|
||||
506_relaxed_usernames
|
||||
506_relaxed_usernames.patch
|
||||
542_useradd-O_option
|
||||
|
||||
Reference in New Issue
Block a user