Blame SOURCES/shadow-4.1.5-redhat.patch

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