upgrade 4.0.14
This commit is contained in:
parent
f6de36b01c
commit
932fac90f7
4 changed files with 91 additions and 48 deletions
|
@ -1 +1 @@
|
||||||
shadow-4.0.13.tar.bz2
|
shadow-4.0.14.tar.bz2
|
||||||
|
|
77
shadow-4.0.14-goodname.patch
Normal file
77
shadow-4.0.14-goodname.patch
Normal file
|
@ -0,0 +1,77 @@
|
||||||
|
--- shadow-4.0.14/man/useradd.8.goodname 2006-01-05 17:54:26.000000000 +0100
|
||||||
|
+++ shadow-4.0.14/man/useradd.8 2006-01-05 18:01:18.000000000 +0100
|
||||||
|
@@ -166,8 +166,6 @@
|
||||||
|
Similarly, if the username already exists in an external user database such as NIS,
|
||||||
|
\fBuseradd\fR
|
||||||
|
will deny the user account creation request.
|
||||||
|
-.PP
|
||||||
|
-Usernames must begin with a lower case letter or an underscore, and only lower case letters, underscores, dashes, and dollar signs may follow. In regular expression terms: [a\-z_][a\-z0\-9_\-]*[$]
|
||||||
|
.SH "FILES"
|
||||||
|
.TP
|
||||||
|
\fI/etc/passwd\fR
|
||||||
|
--- shadow-4.0.14/libmisc/chkname.c.goodname 2005-08-31 19:24:57.000000000 +0200
|
||||||
|
+++ shadow-4.0.14/libmisc/chkname.c 2006-01-05 17:59:45.000000000 +0100
|
||||||
|
@@ -18,16 +18,24 @@
|
||||||
|
static int good_name (const char *name)
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
- * User/group names must match [a-z_][a-z0-9_-]*[$]
|
||||||
|
- */
|
||||||
|
- if (!*name || !((*name >= 'a' && *name <= 'z') || *name == '_'))
|
||||||
|
+ * User/group names must match gnu e-regex:
|
||||||
|
+ * [a-zA-Z0-9_.][a-zA-Z0-9_.-]{0,30}[a-zA-Z0-9_.$-]?
|
||||||
|
+ *
|
||||||
|
+ * as a non-POSIX, extension, allow "$" as the last char for
|
||||||
|
+ * sake of Samba 3.x "add machine script"
|
||||||
|
+ */
|
||||||
|
+ if (!*name || !((*name >= 'a' && *name <= 'z')
|
||||||
|
+ || (*name >= 'A' && *name <= 'Z')
|
||||||
|
+ || (*name >= '0' && *name <= '9')
|
||||||
|
+ || *name == '_' || *name == '.'))
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
while (*++name) {
|
||||||
|
- if (!((*name >= 'a' && *name <= 'z') ||
|
||||||
|
- (*name >= '0' && *name <= '9') ||
|
||||||
|
- *name == '_' || *name == '-' ||
|
||||||
|
- (*name == '$' && *(name + 1) == '\0')))
|
||||||
|
+ if (!( (*name >= 'a' && *name <= 'z')
|
||||||
|
+ || (*name >= 'A' && *name <= 'Z')
|
||||||
|
+ || (*name >= '0' && *name <= '9')
|
||||||
|
+ || *name == '_' || *name == '.' || *name == '-'
|
||||||
|
+ || (*name == '$' && *(name + 1) == '\0')))
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -43,10 +51,9 @@
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
- * User names are limited by whatever utmp can
|
||||||
|
- * handle (usually max 8 characters).
|
||||||
|
+ * User names are limited by whatever utmp can handle.
|
||||||
|
*/
|
||||||
|
- if (strlen (name) > sizeof (ut.ut_user))
|
||||||
|
+ if (strlen(name) + 1 > sizeof(ut.ut_user))
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
return good_name (name);
|
||||||
|
@@ -54,11 +61,13 @@
|
||||||
|
|
||||||
|
int check_group_name (const char *name)
|
||||||
|
{
|
||||||
|
- /*
|
||||||
|
- * Arbitrary limit for group names - max 16
|
||||||
|
- * characters (same as on HP-UX 10).
|
||||||
|
- */
|
||||||
|
- if (strlen (name) > 16)
|
||||||
|
+#if HAVE_UTMPX_H
|
||||||
|
+ struct utmpx ut;
|
||||||
|
+#else
|
||||||
|
+ struct utmp ut;
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
+ if (strlen(name) + 1 > sizeof(ut.ut_user))
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
return good_name (name);
|
|
@ -2,25 +2,21 @@
|
||||||
%define WITH_SELINUX 1
|
%define WITH_SELINUX 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%define utf8_man_pages 1
|
|
||||||
|
|
||||||
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.13
|
Version: 4.0.14
|
||||||
Release: 4.1
|
Release: 1
|
||||||
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
|
||||||
Source1: shadow-970616.login.defs
|
Source1: shadow-970616.login.defs
|
||||||
Source2: shadow-970616.useradd
|
Source2: shadow-970616.useradd
|
||||||
Patch0: shadow-4.0.13-redhat.patch
|
Patch0: shadow-4.0.14-redhat.patch
|
||||||
Patch1: shadow-4.0.3-noinst.patch
|
Patch1: shadow-4.0.3-noinst.patch
|
||||||
Patch2: shadow-4.0.11.1-vipw.patch
|
Patch2: shadow-4.0.11.1-vipw.patch
|
||||||
Patch3: shadow-4.0.13-goodname.patch
|
Patch3: shadow-4.0.14-goodname.patch
|
||||||
Patch4: shadow-4.0.13-newgrpPwd.patch
|
Patch4: shadow-4.0.13-newgrpPwd.patch
|
||||||
Patch5: shadow-4.0.12-lOption.patch
|
Patch5: shadow-4.0.12-lOption.patch
|
||||||
Patch6: shadow-4.0.13-audit-update.patch
|
|
||||||
Patch7: shadow-4.0.13-auditUserdel.patch
|
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
BuildRequires: autoconf, automake, libtool, gettext-devel
|
BuildRequires: autoconf, automake, libtool, gettext-devel
|
||||||
|
@ -51,46 +47,10 @@ are used for managing group accounts.
|
||||||
%patch3 -p1 -b .goodname
|
%patch3 -p1 -b .goodname
|
||||||
%patch4 -p1 -b .newgrpPwd
|
%patch4 -p1 -b .newgrpPwd
|
||||||
%patch5 -p1 -b .lOption
|
%patch5 -p1 -b .lOption
|
||||||
%patch6 -p1 -b .audit
|
|
||||||
%patch7 -p1 -b .auditUserdel
|
|
||||||
|
|
||||||
rm po/*.gmo
|
rm po/*.gmo
|
||||||
rm po/stamp-po
|
rm po/stamp-po
|
||||||
|
|
||||||
# Recode man pages from euc-jp to UTF-8.
|
|
||||||
manconv() {
|
|
||||||
flags="$-"
|
|
||||||
set +x
|
|
||||||
incode=$1
|
|
||||||
outcode=$2
|
|
||||||
shift 2
|
|
||||||
for page in $* ; do
|
|
||||||
if ! iconv -f ${outcode} -t ${outcode} ${page} > /dev/null 2> /dev/null ; then
|
|
||||||
if iconv -f ${incode} -t ${outcode} ${page} > /dev/null 2> /dev/null ; then
|
|
||||||
iconv -f ${incode} -t ${outcode} ${page} > ${page}.tmp && \
|
|
||||||
cat ${page}.tmp > ${page} && \
|
|
||||||
rm ${page}.tmp
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
set -"$flags"
|
|
||||||
}
|
|
||||||
%if %{utf8_man_pages}
|
|
||||||
manconv euc-jp utf-8 man/ja/*.*
|
|
||||||
manconv iso-8859-1 utf-8 man/de/*
|
|
||||||
manconv iso-8859-1 utf-8 man/fr/*
|
|
||||||
manconv iso-8859-1 utf-8 man/it/*
|
|
||||||
manconv iso-8859-1 utf-8 man/pt_BR/*
|
|
||||||
manconv iso-8859-2 utf-8 man/hu/*
|
|
||||||
manconv iso-8859-2 utf-8 man/pl/*
|
|
||||||
manconv iso-8859-2 utf-8 man/cs/*
|
|
||||||
manconv iso-8859-1 utf-8 man/es/*
|
|
||||||
manconv koi8-u utf-8 man/ru/*
|
|
||||||
manconv euc-kr utf-8 man/ko/*.*
|
|
||||||
manconv gb2312 utf-8 man/zh_CN/*.*
|
|
||||||
manconv big5 utf-8 man/zh_TW/*.*
|
|
||||||
%endif
|
|
||||||
|
|
||||||
libtoolize --force
|
libtoolize --force
|
||||||
aclocal
|
aclocal
|
||||||
automake -a
|
automake -a
|
||||||
|
@ -135,7 +95,7 @@ rm $RPM_BUILD_ROOT/%{_bindir}/su
|
||||||
rm $RPM_BUILD_ROOT/%{_sbindir}/logoutd
|
rm $RPM_BUILD_ROOT/%{_sbindir}/logoutd
|
||||||
rm $RPM_BUILD_ROOT/%{_sbindir}/vipw
|
rm $RPM_BUILD_ROOT/%{_sbindir}/vipw
|
||||||
rm $RPM_BUILD_ROOT/%{_sbindir}/vigr
|
rm $RPM_BUILD_ROOT/%{_sbindir}/vigr
|
||||||
|
rm $RPM_BUILD_ROOT/%{_sbindir}/nologin
|
||||||
rm $RPM_BUILD_ROOT/%{_mandir}/*/man1/id.*
|
rm $RPM_BUILD_ROOT/%{_mandir}/*/man1/id.*
|
||||||
rm $RPM_BUILD_ROOT/%{_mandir}/man1/chfn.*
|
rm $RPM_BUILD_ROOT/%{_mandir}/man1/chfn.*
|
||||||
rm $RPM_BUILD_ROOT/%{_mandir}/*/man1/chfn.*
|
rm $RPM_BUILD_ROOT/%{_mandir}/*/man1/chfn.*
|
||||||
|
@ -167,6 +127,8 @@ rm $RPM_BUILD_ROOT/%{_mandir}/man8/vipw.*
|
||||||
rm $RPM_BUILD_ROOT/%{_mandir}/*/man8/vipw.*
|
rm $RPM_BUILD_ROOT/%{_mandir}/*/man8/vipw.*
|
||||||
rm $RPM_BUILD_ROOT/%{_mandir}/man8/vigr.*
|
rm $RPM_BUILD_ROOT/%{_mandir}/man8/vigr.*
|
||||||
rm $RPM_BUILD_ROOT/%{_mandir}/*/man8/vigr.*
|
rm $RPM_BUILD_ROOT/%{_mandir}/*/man8/vigr.*
|
||||||
|
rm $RPM_BUILD_ROOT/%{_mandir}/*/man8/sulogin.*
|
||||||
|
rm $RPM_BUILD_ROOT/%{_mandir}/*/man3/pw_auth.*
|
||||||
|
|
||||||
%find_lang shadow
|
%find_lang shadow
|
||||||
|
|
||||||
|
@ -175,7 +137,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files -f shadow.lang
|
%files -f shadow.lang
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc NEWS doc/HOWTO doc/LICENSE README doc/README.linux
|
%doc NEWS doc/HOWTO README
|
||||||
%dir /etc/default
|
%dir /etc/default
|
||||||
%attr(0644,root,root) %config /etc/login.defs
|
%attr(0644,root,root) %config /etc/login.defs
|
||||||
%attr(0600,root,root) %config /etc/default/useradd
|
%attr(0600,root,root) %config /etc/default/useradd
|
||||||
|
@ -210,6 +172,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%{_mandir}/man5/login.defs.5*
|
%{_mandir}/man5/login.defs.5*
|
||||||
%{_mandir}/*/man5/login.defs.5*
|
%{_mandir}/*/man5/login.defs.5*
|
||||||
%{_mandir}/man5/gshadow.5*
|
%{_mandir}/man5/gshadow.5*
|
||||||
|
%{_mandir}/*/man5/gshadow.5*
|
||||||
%{_mandir}/man5/faillog.5*
|
%{_mandir}/man5/faillog.5*
|
||||||
%{_mandir}/*/man5/faillog.5*
|
%{_mandir}/*/man5/faillog.5*
|
||||||
%{_mandir}/man8/adduser.8*
|
%{_mandir}/man8/adduser.8*
|
||||||
|
@ -234,6 +197,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%{_mandir}/*/man8/faillog.8*
|
%{_mandir}/*/man8/faillog.8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 06 2006 Peter Vrabec <pvrabec@redhat.com> 2:4.0.14-1
|
||||||
|
- upgrade
|
||||||
|
|
||||||
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
||||||
- rebuilt
|
- rebuilt
|
||||||
|
|
||||||
|
|
2
sources
2
sources
|
@ -1 +1 @@
|
||||||
5c6a105d89afb0900922260e9c5650cc shadow-4.0.13.tar.bz2
|
903f55cf05bbe082617d3337743792fb shadow-4.0.14.tar.bz2
|
||||||
|
|
Loading…
Reference in a new issue