214efedae2
- shadow-4.1.5.1-backup-mode.patch: open backup file with correct permissions. - shadow-4.1.5.1-logmsg.patch: fix error message - shadow-4.1.5.1-errmsg.patch: print error reason - shadow-4.1.5.1-manfix.patch: fix manual page OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=9
23 lines
703 B
Diff
23 lines
703 B
Diff
--- src/useradd.c
|
|
+++ src/useradd.c 2013/09/17 12:30:31
|
|
@@ -1759,6 +1759,9 @@
|
|
if (access (user_home, F_OK) != 0) {
|
|
#ifdef WITH_SELINUX
|
|
if (set_selinux_file_context (user_home) != 0) {
|
|
+ fprintf (stderr,
|
|
+ _("%s: cannot set SELinux context for home directory %s\n"),
|
|
+ Prog, user_home);
|
|
fail_exit (E_HOMEDIR);
|
|
}
|
|
#endif
|
|
@@ -1788,6 +1791,9 @@
|
|
#ifdef WITH_SELINUX
|
|
/* Reset SELinux to create files with default contexts */
|
|
if (reset_selinux_file_context () != 0) {
|
|
+ fprintf (stderr,
|
|
+ _("%s: cannot reset SELinux file creation context\n"),
|
|
+ Prog);
|
|
fail_exit (E_HOMEDIR);
|
|
}
|
|
#endif
|