diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-26 16:18:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-26 16:18:58 +0000 |
commit | df9860ad11e4d43fe90cd1d10a7fdb19a141c0c6 (patch) | |
tree | 920e078110651c9937fffc108917f5d5c09b73e0 /debian/patches/Keep-using-Debian-adduser-defaults.patch | |
parent | Merging upstream version 1:4.15.2. (diff) | |
download | shadow-df9860ad11e4d43fe90cd1d10a7fdb19a141c0c6.tar.xz shadow-df9860ad11e4d43fe90cd1d10a7fdb19a141c0c6.zip |
Merging debian version 1:4.15.2-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/Keep-using-Debian-adduser-defaults.patch')
-rw-r--r-- | debian/patches/Keep-using-Debian-adduser-defaults.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/debian/patches/Keep-using-Debian-adduser-defaults.patch b/debian/patches/Keep-using-Debian-adduser-defaults.patch new file mode 100644 index 0000000..51dfb88 --- /dev/null +++ b/debian/patches/Keep-using-Debian-adduser-defaults.patch @@ -0,0 +1,54 @@ +From: Balint Reczey <balint@balintreczey.hu> +Date: Sat, 22 Jun 2024 17:39:41 +0200 +Subject: Keep using Debian's adduser defaults + +Bug: https://github.com/shadow-maint/shadow/issues/501 +Bug-Debian: https://bugs.debian.org/1004710 +Forwarded: not-needed + +Upstream's bbf4b79bc49fd1826eb41f6629669ef0b647267b commit +in 4.9 merged those values from upstream's default configuration file +which is not shipped in Debian. +This patch keeps the program's compiled in defaults in sync with the +configuration files shipped in Debian (debian/default/useradd). + +Gbp-Topic: debian +--- + man/useradd.8.xml | 2 +- + src/useradd.c | 4 ++-- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/man/useradd.8.xml b/man/useradd.8.xml +index 001e7d1..4888100 100644 +--- a/man/useradd.8.xml ++++ b/man/useradd.8.xml +@@ -248,7 +248,7 @@ + command line), useradd will set the primary group of the new + user to the value specified by the <option>GROUP</option> + variable in <filename>/etc/default/useradd</filename>, or +- 1000 by default. ++ 100 by default. + </para> + </listitem> + </varlistentry> +diff --git a/src/useradd.c b/src/useradd.c +index 347334a..ac43edd 100644 +--- a/src/useradd.c ++++ b/src/useradd.c +@@ -91,14 +91,14 @@ static const char Prog[] = "useradd"; + /* + * These defaults are used if there is no defaults file. + */ +-static gid_t def_group = 1000; ++static gid_t def_group = 100; + static const char *def_groups = ""; + static const char *def_gname = "other"; + static const char *def_home = "/home"; + static const char *def_shell = "/bin/bash"; + static const char *def_template = SKEL_DIR; + static const char *def_usrtemplate = USRSKELDIR; +-static const char *def_create_mail_spool = "yes"; ++static const char *def_create_mail_spool = "no"; + static const char *def_log_init = "yes"; + + static long def_inactive = -1; |