fix 235641: useradd dumps core when build without WITH_SELINUX
This commit is contained in:
parent
0efaa0797a
commit
1db68add04
3 changed files with 6 additions and 3 deletions
|
@ -16,7 +16,7 @@
|
||||||
Gflg = 0, /* secondary group set for new account */
|
Gflg = 0, /* secondary group set for new account */
|
||||||
kflg = 0, /* specify a directory to fill new user directory */
|
kflg = 0, /* specify a directory to fill new user directory */
|
||||||
mflg = 0, /* create user's home directory if it doesn't exist */
|
mflg = 0, /* create user's home directory if it doesn't exist */
|
||||||
+ lflg = 0; /* do not add user to lastlog database file */
|
+ lflg = 0, /* do not add user to lastlog database file */
|
||||||
Mflg = 0, /* do NOT create user's home directory no matter what */
|
Mflg = 0, /* do NOT create user's home directory no matter what */
|
||||||
nflg = 0, /* do NOT create a group having the same name as the user */
|
nflg = 0, /* do NOT create a group having the same name as the user */
|
||||||
oflg = 0, /* permit non-unique user ID to be specified with -u */
|
oflg = 0, /* permit non-unique user ID to be specified with -u */
|
||||||
|
|
|
@ -213,7 +213,7 @@
|
||||||
+#ifdef WITH_SELINUX
|
+#ifdef WITH_SELINUX
|
||||||
+ getopt_long (argc, argv, "b:c:d:De:f:g:G:k:K:mlMnrop:s:u:Z:",
|
+ getopt_long (argc, argv, "b:c:d:De:f:g:G:k:K:mlMnrop:s:u:Z:",
|
||||||
+#else
|
+#else
|
||||||
+ getopt_long (argc, argv, "b:c:d:De:f:g:G:k:K:mlMnrop:s:u",
|
+ getopt_long (argc, argv, "b:c:d:De:f:g:G:k:K:mlMnrop:s:u:",
|
||||||
+#endif
|
+#endif
|
||||||
long_options, NULL)) != -1) {
|
long_options, NULL)) != -1) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
Summary: Utilities for managing accounts and shadow password files
|
Summary: Utilities for managing accounts and shadow password files
|
||||||
Name: shadow-utils
|
Name: shadow-utils
|
||||||
Version: 4.0.18.1
|
Version: 4.0.18.1
|
||||||
Release: 12%{?dist}
|
Release: 13%{?dist}
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
URL: http://shadow.pld.org.pl/
|
URL: http://shadow.pld.org.pl/
|
||||||
Source0: ftp://ftp.pld.org.pl/software/shadow/shadow-%{version}.tar.bz2
|
Source0: ftp://ftp.pld.org.pl/software/shadow/shadow-%{version}.tar.bz2
|
||||||
|
@ -223,6 +223,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%{_mandir}/*/man8/faillog.8*
|
%{_mandir}/*/man8/faillog.8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Apr 10 2007 Peter Vrabec <pvrabec@redhat.com> 2:4.0.18.1-13
|
||||||
|
- fix useradd dump core when build without WITH_SELINUX (#235641)
|
||||||
|
|
||||||
* Mon Mar 26 2007 Peter Vrabec <pvrabec@redhat.com> 2:4.0.18.1-12
|
* Mon Mar 26 2007 Peter Vrabec <pvrabec@redhat.com> 2:4.0.18.1-12
|
||||||
- create user's mailbox file by default (#231311)
|
- create user's mailbox file by default (#231311)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue