X-Git-Url: https://git.tld-linux.org/?p=packages%2Fshadow.git;a=blobdiff_plain;f=shadow-tld.patch;fp=shadow-tld.patch;h=4fe51129ab8a571cc4baba7091aa49f17c13cb5b;hp=69836c2f6a29faacbee26300b16257d34f19d911;hb=482ae6ebc51c096b837c9d8f40c5c40a9d599e5f;hpb=c30df049cb4dbb3dbba3897fecc9ae28026c630f diff --git a/shadow-tld.patch b/shadow-tld.patch index 69836c2..4fe5112 100644 --- a/shadow-tld.patch +++ b/shadow-tld.patch @@ -1,6 +1,35 @@ ---- shadow-4.0.6/src/useradd.c 2004-11-18 21:45:00.713398344 +0100 -+++ shadow-4.0.16/src/useradd.c 2006-06-08 01:17:05.580340031 +0300 -@@ -72,10 +72,10 @@ +diff -urpa shadow-4.8.orig/libmisc/find_new_gid.c shadow-4.8/libmisc/find_new_gid.c +--- shadow-4.8.orig/libmisc/find_new_gid.c 2019-10-13 04:52:08.000000000 +0200 ++++ shadow-4.8/libmisc/find_new_gid.c 2019-12-15 23:40:29.745000000 +0100 +@@ -61,8 +61,8 @@ static int get_ranges (bool sys_group, g + /* A requested ID is allowed to be below the autoselect range */ + *preferred_min = (gid_t) 1; + +- /* Get the minimum ID range from login.defs or default to 101 */ +- *min_id = (gid_t) getdef_ulong ("SYS_GID_MIN", 101UL); ++ /* Get the minimum ID range from login.defs or default to 10 */ ++ *min_id = (gid_t) getdef_ulong ("SYS_GID_MIN", 10UL); + + /* + * If SYS_GID_MAX is unspecified, we should assume it to be one +diff -urpa shadow-4.8.orig/libmisc/find_new_uid.c shadow-4.8/libmisc/find_new_uid.c +--- shadow-4.8.orig/libmisc/find_new_uid.c 2019-10-13 04:52:08.000000000 +0200 ++++ shadow-4.8/libmisc/find_new_uid.c 2019-12-15 23:40:29.746000000 +0100 +@@ -61,8 +61,8 @@ static int get_ranges (bool sys_user, ui + /* A requested ID is allowed to be below the autoselect range */ + *preferred_min = (uid_t) 1; + +- /* Get the minimum ID range from login.defs or default to 101 */ +- *min_id = (uid_t) getdef_ulong ("SYS_UID_MIN", 101UL); ++ /* Get the minimum ID range from login.defs or default to 1 */ ++ *min_id = (uid_t) getdef_ulong ("SYS_UID_MIN", 1UL); + + /* + * If SYS_UID_MAX is unspecified, we should assume it to be one +diff -urpa shadow-4.8.orig/src/useradd.c shadow-4.8/src/useradd.c +--- shadow-4.8.orig/src/useradd.c 2019-12-01 17:52:32.000000000 +0100 ++++ shadow-4.8/src/useradd.c 2019-12-15 23:40:29.745000000 +0100 +@@ -96,10 +96,10 @@ const char *Prog; /* * These defaults are used if there is no defaults file. */ @@ -14,7 +43,7 @@ static const char *def_template = SKEL_DIR; static const char *def_create_mail_spool = "no"; -@@ -89,7 +89,7 @@ +@@ -109,7 +109,7 @@ static const char *def_expire = ""; #define VALID(s) (strcspn (s, ":\n") == strlen (s)) static const char *user_name = ""; @@ -23,29 +52,3 @@ static uid_t user_id; static gid_t user_gid; static const char *user_comment = ""; ---- shadow-4.5/libmisc/find_new_gid.c~ 2017-01-29 22:37:22.000000000 +0200 -+++ shadow-4.5/libmisc/find_new_gid.c 2017-05-17 23:13:32.785253060 +0300 -@@ -61,8 +61,8 @@ - /* A requested ID is allowed to be below the autoselect range */ - *preferred_min = (gid_t) 1; - -- /* Get the minimum ID range from login.defs or default to 101 */ -- *min_id = (gid_t) getdef_ulong ("SYS_GID_MIN", 101UL); -+ /* Get the minimum ID range from login.defs or default to 10 */ -+ *min_id = (gid_t) getdef_ulong ("SYS_GID_MIN", 10UL); - - /* - * If SYS_GID_MAX is unspecified, we should assume it to be one ---- shadow-4.5/libmisc/find_new_uid.c~ 2017-01-29 22:37:22.000000000 +0200 -+++ shadow-4.5/libmisc/find_new_uid.c 2017-05-17 23:10:38.366687971 +0300 -@@ -61,8 +61,8 @@ - /* A requested ID is allowed to be below the autoselect range */ - *preferred_min = (uid_t) 1; - -- /* Get the minimum ID range from login.defs or default to 101 */ -- *min_id = (uid_t) getdef_ulong ("SYS_UID_MIN", 101UL); -+ /* Get the minimum ID range from login.defs or default to 1 */ -+ *min_id = (uid_t) getdef_ulong ("SYS_UID_MIN", 1UL); - - /* - * If SYS_UID_MAX is unspecified, we should assume it to be one