diff options
Diffstat (limited to 'debian/patches/542_useradd-O_option')
-rw-r--r-- | debian/patches/542_useradd-O_option | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/debian/patches/542_useradd-O_option b/debian/patches/542_useradd-O_option deleted file mode 100644 index 506352f1..00000000 --- a/debian/patches/542_useradd-O_option +++ /dev/null @@ -1,43 +0,0 @@ -Goal: accepts the -O flag for backward compatibility. (was used by adduser?) - -Note: useradd.8 needs to be regenerated. - -Status wrt upstream: not included as this is just specific - backward compatibility for Debian - ---- a/man/useradd.8.xml -+++ b/man/useradd.8.xml -@@ -321,6 +321,11 @@ - databases are resetted to avoid reusing the entry from a previously - deleted user. - </para> -+ <para> -+ For the compatibility with previous Debian's -+ <command>useradd</command>, the <option>-O</option> option is -+ also supported. -+ </para> - </listitem> - </varlistentry> - <varlistentry> ---- a/src/useradd.c -+++ b/src/useradd.c -@@ -1011,9 +1011,9 @@ - }; - while ((c = getopt_long (argc, argv, - #ifdef WITH_SELINUX -- "b:c:d:De:f:g:G:hk:K:lmMNop:rR:s:u:UZ:", -+ "b:c:d:De:f:g:G:hk:O:K:lmMNop:rR:s:u:UZ:", - #else /* !WITH_SELINUX */ -- "b:c:d:De:f:g:G:hk:K:lmMNop:rR:s:u:U", -+ "b:c:d:De:f:g:G:hk:O:K:lmMNop:rR:s:u:U", - #endif /* !WITH_SELINUX */ - long_options, NULL)) != -1) { - switch (c) { -@@ -1136,6 +1136,7 @@ - kflg = true; - break; - case 'K': -+ case 'O': /* compatibility with previous Debian useradd */ - /* - * override login.defs defaults (-K name=value) - * example: -K UID_MIN=100 -K UID_MAX=499 |