Blame SOURCES/shadow-4.6-redhat.patch

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