diff --git a/debian/patches/501_commonio_group_shadow b/debian/patches/501_commonio_group_shadow
index fea4ea3d..0b6ccc5c 100644
--- a/debian/patches/501_commonio_group_shadow
+++ b/debian/patches/501_commonio_group_shadow
@@ -12,7 +12,7 @@ Fixes: #166793
#include "nscd.h"
#include "sssd.h"
#ifdef WITH_TCB
-@@ -978,12 +979,23 @@
+@@ -976,12 +977,23 @@
goto fail;
}
} else {
diff --git a/debian/patches/506_relaxed_usernames b/debian/patches/506_relaxed_usernames
index 7a130091..11665465 100644
--- a/debian/patches/506_relaxed_usernames
+++ b/debian/patches/506_relaxed_usernames
@@ -54,7 +54,7 @@ Details:
}
--- a/man/useradd.8.xml
+++ b/man/useradd.8.xml
-@@ -651,12 +651,20 @@
+@@ -692,12 +692,20 @@
@@ -78,9 +78,9 @@ Details:
--- a/man/groupadd.8.xml
+++ b/man/groupadd.8.xml
-@@ -265,12 +265,18 @@
-
- CAVEATS
+@@ -64,12 +64,18 @@
+ files as needed.
+
- Groupnames must start with a lower case letter or an underscore,
+ It is usually recommended to only use groupnames that begin with a lower case letter or an underscore,
@@ -97,4 +97,4 @@ Details:
+
Groupnames may only be up to &GROUP_NAME_MAX_LENGTH; characters long.
-
+
diff --git a/debian/patches/542_useradd-O_option b/debian/patches/542_useradd-O_option
index 6f555c68..d594ca9b 100644
--- a/debian/patches/542_useradd-O_option
+++ b/debian/patches/542_useradd-O_option
@@ -7,9 +7,9 @@ Status wrt upstream: not included as this is just specific
--- a/man/useradd.8.xml
+++ b/man/useradd.8.xml
-@@ -302,6 +302,11 @@
- UID_MIN=100
- UID_MAX=499
+@@ -320,6 +320,11 @@
+ =100
+ UID_MAX=499
+
+ For the compatibility with previous Debian's
@@ -21,19 +21,16 @@ Status wrt upstream: not included as this is just specific
doesn't work yet.
--- a/src/useradd.c
+++ b/src/useradd.c
-@@ -1219,9 +1219,9 @@
+@@ -1227,7 +1227,7 @@
+ {NULL, 0, NULL, '\0'}
};
while ((c = getopt_long (argc, argv,
+- "b:c:d:De:f:g:G:hk:K:lmMNop:rR:P:s:u:U"
++ "b:c:d:De:f:g:G:hk:O:K:lmMNop:rR:P:s:u:U"
#ifdef WITH_SELINUX
-- "b:c:d:De:f:g:G:hk:K:lmMNop:rR:P:s:u:UZ:",
-+ "b:c:d:De:f:g:G:hk:O:K:lmMNop:rR:P:s:u:UZ:",
- #else /* !WITH_SELINUX */
-- "b:c:d:De:f:g:G:hk:K:lmMNop:rR:P:s:u:U",
-+ "b:c:d:De:f:g:G:hk:O:K:lmMNop:rR:P:s:u:U",
- #endif /* !WITH_SELINUX */
- long_options, NULL)) != -1) {
- switch (c) {
-@@ -1350,6 +1350,7 @@
+ "Z:"
+ #endif /* WITH_SELINUX */
+@@ -1367,6 +1367,7 @@
kflg = true;
break;
case 'K':