Blame SOURCES/shadow-4.1.5-redhat.patch

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