Drop the user name regexp from the manual as it is not exact.

This commit is contained in:
Tomas Mraz 2019-02-06 17:24:08 +01:00
parent 6f7a2acd68
commit 39afa9e9fb

View File

@ -64,7 +64,7 @@ Index: shadow-4.5/man/groupadd.8.xml
=================================================================== ===================================================================
--- shadow-4.5.orig/man/groupadd.8.xml --- shadow-4.5.orig/man/groupadd.8.xml
+++ shadow-4.5/man/groupadd.8.xml +++ shadow-4.5/man/groupadd.8.xml
@@ -256,10 +256,14 @@ @@ -256,10 +256,12 @@
<refsect1 id='caveats'> <refsect1 id='caveats'>
<title>CAVEATS</title> <title>CAVEATS</title>
<para> <para>
@ -78,8 +78,6 @@ Index: shadow-4.5/man/groupadd.8.xml
+ Dashes are not allowed at the beginning of the groupname. + Dashes are not allowed at the beginning of the groupname.
+ Fully numeric groupnames and groupnames . or .. are + Fully numeric groupnames and groupnames . or .. are
+ also disallowed. + also disallowed.
+
+ In regular expression terms: [a-zA-Z0-9_.][a-zA-Z0-9_.-]*[$]?
</para> </para>
<para> <para>
Groupnames may only be up to &GROUP_NAME_MAX_LENGTH; characters long. Groupnames may only be up to &GROUP_NAME_MAX_LENGTH; characters long.
@ -87,7 +85,7 @@ Index: shadow-4.5/man/useradd.8.xml
=================================================================== ===================================================================
--- shadow-4.5.orig/man/useradd.8.xml --- shadow-4.5.orig/man/useradd.8.xml
+++ shadow-4.5/man/useradd.8.xml +++ shadow-4.5/man/useradd.8.xml
@@ -633,10 +633,16 @@ @@ -633,10 +633,14 @@
</para> </para>
<para> <para>
@ -103,8 +101,6 @@ Index: shadow-4.5/man/useradd.8.xml
+ also disallowed. It is not recommended to use usernames beginning + also disallowed. It is not recommended to use usernames beginning
+ with . character as their home directories will be hidden in + with . character as their home directories will be hidden in
+ the <command>ls</command> output. + the <command>ls</command> output.
+
+ In regular expression terms: [a-zA-Z0-9_.][a-zA-Z0-9_.-]*[$]?
</para> </para>
<para> <para>
Usernames may only be up to 32 characters long. Usernames may only be up to 32 characters long.