]> git.pld-linux.org Git - packages/shadow.git/blame - shadow-pld.patch
libsemanage 3.6 rebuild
[packages/shadow.git] / shadow-pld.patch
CommitLineData
d3dbe0c8
ER
1--- shadow-4.12.3/src/useradd.c~ 2022-08-22 18:27:55.000000000 +0300
2+++ shadow-4.12.3/src/useradd.c 2022-08-22 18:27:58.336079332 +0300
3@@ -81,8 +81,8 @@
8f1ee8fc 4 */
d3dbe0c8 5 static gid_t def_group = 1000;
8f1ee8fc
ER
6 static const char *def_gname = "other";
7-static const char *def_home = "/home";
d3dbe0c8 8-static const char *def_shell = "/bin/bash";
8f1ee8fc 9+static const char *def_home = "/home/users";
32157634 10+static const char *def_shell = "/sbin/nologin";
8f1ee8fc 11 static const char *def_template = SKEL_DIR;
d3dbe0c8
ER
12 static const char *def_create_mail_spool = "yes";
13 static const char *def_log_init = "yes";
8f1ee8fc
ER
14@@ -89,7 +89,7 @@
15 #define VALID(s) (strcspn (s, ":\n") == strlen (s))
16
17 static const char *user_name = "";
18-static const char *user_pass = "!";
19+static const char *user_pass = "!!";
20 static uid_t user_id;
21 static gid_t user_gid;
22 static const char *user_comment = "";
fb1d8215
ER
23--- shadow-4.5/libmisc/find_new_gid.c~ 2017-01-29 22:37:22.000000000 +0200
24+++ shadow-4.5/libmisc/find_new_gid.c 2017-05-17 23:13:32.785253060 +0300
25@@ -61,8 +61,8 @@
26 /* A requested ID is allowed to be below the autoselect range */
27 *preferred_min = (gid_t) 1;
28
29- /* Get the minimum ID range from login.defs or default to 101 */
30- *min_id = (gid_t) getdef_ulong ("SYS_GID_MIN", 101UL);
31+ /* Get the minimum ID range from login.defs or default to 10 */
32+ *min_id = (gid_t) getdef_ulong ("SYS_GID_MIN", 10UL);
33
34 /*
35 * If SYS_GID_MAX is unspecified, we should assume it to be one
36--- shadow-4.5/libmisc/find_new_uid.c~ 2017-01-29 22:37:22.000000000 +0200
37+++ shadow-4.5/libmisc/find_new_uid.c 2017-05-17 23:10:38.366687971 +0300
38@@ -61,8 +61,8 @@
39 /* A requested ID is allowed to be below the autoselect range */
40 *preferred_min = (uid_t) 1;
41
42- /* Get the minimum ID range from login.defs or default to 101 */
43- *min_id = (uid_t) getdef_ulong ("SYS_UID_MIN", 101UL);
44+ /* Get the minimum ID range from login.defs or default to 1 */
45+ *min_id = (uid_t) getdef_ulong ("SYS_UID_MIN", 1UL);
46
47 /*
48 * If SYS_UID_MAX is unspecified, we should assume it to be one
This page took 0.24344 seconds and 4 git commands to generate.