Blame SOURCES/shadow-4.1.5-redhat.patch

6bc9bb
diff -up shadow-4.1.5/man/useradd.8.redhat shadow-4.1.5/man/useradd.8
6bc9bb
diff -up shadow-4.1.5/src/useradd.c.redhat shadow-4.1.5/src/useradd.c
6bc9bb
--- shadow-4.1.5/src/useradd.c.redhat	2011-12-09 23:23:15.000000000 +0100
6bc9bb
+++ shadow-4.1.5/src/useradd.c	2012-03-19 09:50:05.227588669 +0100
6bc9bb
@@ -93,7 +93,7 @@ const char *Prog;
6bc9bb
 static gid_t def_group = 100;
6bc9bb
 static const char *def_gname = "other";
6bc9bb
 static const char *def_home = "/home";
6bc9bb
-static const char *def_shell = "";
6bc9bb
+static const char *def_shell = "/sbin/nologin";
6bc9bb
 static const char *def_template = SKEL_DIR;
6bc9bb
 static const char *def_create_mail_spool = "no";
6bc9bb
 
6bc9bb
@@ -103,7 +103,7 @@ static const char *def_expire = "";
6bc9bb
 #define	VALID(s)	(strcspn (s, ":\n") == strlen (s))
6bc9bb
 
6bc9bb
 static const char *user_name = "";
6bc9bb
-static const char *user_pass = "!";
6bc9bb
+static const char *user_pass = "!!";
6bc9bb
 static uid_t user_id;
6bc9bb
 static gid_t user_gid;
6bc9bb
 static const char *user_comment = "";
6bc9bb
@@ -1011,9 +1011,9 @@ static void process_flags (int argc, cha
6bc9bb
 		};
6bc9bb
 		while ((c = getopt_long (argc, argv,
6bc9bb
 #ifdef WITH_SELINUX
6bc9bb
-		                         "b:c:d:De:f:g:G:hk:K:lmMNop:rR:s:u:UZ:",
6bc9bb
+		                         "b:c:d:De:f:g:G:hk:K:lmMnNop:rR:s:u:UZ:",
6bc9bb
 #else				/* !WITH_SELINUX */
6bc9bb
-		                         "b:c:d:De:f:g:G:hk:K:lmMNop:rR:s:u:U",
6bc9bb
+		                         "b:c:d:De:f:g:G:hk:K:lmMnNop:rR:s:u:U",
6bc9bb
 #endif				/* !WITH_SELINUX */
6bc9bb
 		                         long_options, NULL)) != -1) {
6bc9bb
 			switch (c) {
6bc9bb
@@ -1164,6 +1164,7 @@ static void process_flags (int argc, cha
6bc9bb
 			case 'M':
6bc9bb
 				Mflg = true;
6bc9bb
 				break;
6bc9bb
+			case 'n':
6bc9bb
 			case 'N':
6bc9bb
 				Nflg = true;
6bc9bb
 				break;