Blame SOURCES/shadow-4.6-redhat.patch

4fb1b2
diff -up shadow-4.6/src/useradd.c.redhat shadow-4.6/src/useradd.c
4fb1b2
--- shadow-4.6/src/useradd.c.redhat	2018-04-29 18:42:37.000000000 +0200
4fb1b2
+++ shadow-4.6/src/useradd.c	2018-05-28 13:37:16.695651258 +0200
4fb1b2
@@ -98,7 +98,7 @@ const char *Prog;
4fb1b2
 static gid_t def_group = 100;
4fb1b2
 static const char *def_gname = "other";
4fb1b2
 static const char *def_home = "/home";
4fb1b2
-static const char *def_shell = "";
4fb1b2
+static const char *def_shell = "/sbin/nologin";
4fb1b2
 static const char *def_template = SKEL_DIR;
4fb1b2
 static const char *def_create_mail_spool = "no";
4fb1b2
 
4fb1b2
@@ -108,7 +108,7 @@ static const char *def_expire = "";
4fb1b2
 #define	VALID(s)	(strcspn (s, ":\n") == strlen (s))
4fb1b2
 
4fb1b2
 static const char *user_name = "";
4fb1b2
-static const char *user_pass = "!";
4fb1b2
+static const char *user_pass = "!!";
4fb1b2
 static uid_t user_id;
4fb1b2
 static gid_t user_gid;
4fb1b2
 static const char *user_comment = "";
4fb1b2
@@ -1114,9 +1114,9 @@ static void process_flags (int argc, cha
4fb1b2
 		};
4fb1b2
 		while ((c = getopt_long (argc, argv,
4fb1b2
 #ifdef WITH_SELINUX
4fb1b2
-		                         "b:c:d:De:f:g:G:hk:K:lmMNop:rR:P:s:u:UZ:",
4fb1b2
+		                         "b:c:d:De:f:g:G:hk:K:lmMnNop:rR:P:s:u:UZ:",
4fb1b2
 #else				/* !WITH_SELINUX */
4fb1b2
-		                         "b:c:d:De:f:g:G:hk:K:lmMNop:rR:P:s:u:U",
4fb1b2
+		                         "b:c:d:De:f:g:G:hk:K:lmMnNop:rR:P:s:u:U",
4fb1b2
 #endif				/* !WITH_SELINUX */
4fb1b2
 		                         long_options, NULL)) != -1) {
4fb1b2
 			switch (c) {
4fb1b2
@@ -1267,6 +1267,7 @@ static void process_flags (int argc, cha
4fb1b2
 			case 'M':
4fb1b2
 				Mflg = true;
4fb1b2
 				break;
4fb1b2
+			case 'n':
4fb1b2
 			case 'N':
4fb1b2
 				Nflg = true;
4fb1b2
 				break;