Hello community,
here is the log from the commit of package login
checked in at Sun Apr 20 20:34:01 CEST 2008.
--------
--- login/login.changes 2008-02-15 11:49:46.000000000 +0100
+++ login/login.changes 2008-04-18 17:56:03.042424000 +0200
@@ -1,0 +2,6 @@
+Fri Apr 18 16:35:04 CEST 2008 - werner@suse.de
+
+- Add missing setutent() in case of network login (bnc#374299)
+- Handle pts slave lines like utemper
+
+-------------------------------------------------------------------
New:
----
pam_login-3.35-pts.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ login.spec ++++++
--- /var/tmp/diff_new_pack.u30146/_old 2008-04-20 16:39:15.000000000 +0200
+++ /var/tmp/diff_new_pack.u30146/_new 2008-04-20 16:39:15.000000000 +0200
@@ -18,11 +18,12 @@
Group: System/Base
AutoReqProv: on
Version: 3.35
-Release: 1
+Release: 15
Summary: Login Program.
Source: pam_login-%{version}.tar.bz2
Patch: bugzilla-148065.patch
Patch1: pam_login-3.31-suppress_hostname.patch
+Patch2: pam_login-3.35-pts.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@@ -34,6 +35,7 @@
%setup -q -n pam_login-%{version}
%patch -p0
%patch1 -p1
+%patch2 -p0
%build
autoreconf
@@ -61,5 +63,8 @@
%doc %{_mandir}/man?/*
%changelog
+* Fri Apr 18 2008 werner@suse.de
+- Add missing setutent() in case of network login (bnc#374299)
+- Handle pts slave lines like utemper
* Wed Feb 13 2008 rguenther@suse.de
- Split from pwdutils.
++++++ pam_login-3.35-pts.patch ++++++
--- src/login.c
+++ src/login.c 2008-04-18 17:19:15.335806337 +0200
@@ -999,12 +999,30 @@ main (int argc, char **argv)
/* for linux, write entries in utmp and wtmp */
{
struct utmp ut;
- struct utmp *utp;
+ struct utmp *utp = NULL;
+#if __WORDSIZE == 64 && defined __WORDSIZE_COMPAT32
struct timeval ut_tv;
+#endif
pid_t mypid = getpid ();
+ char * id = (ttyn != NULL) ? ttyn + strlen(_PATH_TTY) : NULL;
+ char * line = (ttyn != NULL) ? ttyn + strlen(_PATH_DEV) : NULL;
+ memset (&ut, 0, sizeof (ut));
utmpname (_PATH_UTMP);
- setutent ();
+
+ /*
+ * If used for a pseudo-terminal we're called by a network daemon.
+ * Correct the id in that case in same manner as utemper does
+ * and skip scanning for spawned inittab processes. This should
+ * also corrected in sshd construct_utmp()/construct_utmpx().
+ * Werner Fink