Blame SOURCES/shadow-4.1.5.1-errmsg.patch

9f90df
diff -up shadow-4.1.5.1/src/useradd.c.logmsg shadow-4.1.5.1/src/useradd.c
9f90df
--- shadow-4.1.5.1/src/useradd.c.logmsg	2013-02-20 15:41:44.000000000 +0100
9f90df
+++ shadow-4.1.5.1/src/useradd.c	2013-06-14 14:22:59.529661095 +0200
9f90df
@@ -1760,6 +1760,9 @@ static void create_home (void)
9f90df
 	if (access (user_home, F_OK) != 0) {
9f90df
 #ifdef WITH_SELINUX
9f90df
 		if (set_selinux_file_context (user_home, NULL) != 0) {
9f90df
+			fprintf (stderr,
9f90df
+			         _("%s: cannot set SELinux context for home directory %s\n"),
9f90df
+			         Prog, user_home);
9f90df
 			fail_exit (E_HOMEDIR);
9f90df
 		}
9f90df
 #endif
9f90df
@@ -1789,6 +1792,9 @@ static void create_home (void)
9f90df
 #ifdef WITH_SELINUX
9f90df
 		/* Reset SELinux to create files with default contexts */
9f90df
 		if (reset_selinux_file_context () != 0) {
9f90df
+			fprintf (stderr,
9f90df
+			         _("%s: cannot reset SELinux file creation context\n"),
9f90df
+			         Prog);
9f90df
 			fail_exit (E_HOMEDIR);
9f90df
 		}
9f90df
 #endif