- Repaired the problem with puting entries with very big uid into lastlog

This commit is contained in:
Jan F 2010-09-13 13:02:01 +02:00
parent 2bdd0209d2
commit ce0606e548
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up openssh-5.6p1/loginrec.c.orig openssh-5.6p1/loginrec.c
--- openssh-5.6p1/loginrec.c.orig 2010-09-13 11:32:57.000000000 +0200
+++ openssh-5.6p1/loginrec.c 2010-09-13 12:48:25.000000000 +0200
@@ -1548,7 +1548,7 @@ lastlog_openseek(struct logininfo *li, i
if (S_ISREG(st.st_mode)) {
/* find this uid's offset in the lastlog file */
- offset = (off_t) ((long)li->uid * sizeof(struct lastlog));
+ offset = (off_t) ((long)(unsigned)li->uid * sizeof(struct lastlog));
if (lseek(*fd, offset, SEEK_SET) != offset) {
logit("%s: %s->lseek(): %s", __func__,

View File

@ -71,7 +71,7 @@
# Do not forget to bump pam_ssh_agent_auth release if you rewind the main package release to 1
%define openssh_ver 5.6p1
%define openssh_rel 5
%define openssh_rel 6
%define pam_ssh_agent_ver 0.9.2
%define pam_ssh_agent_rel 27
@ -127,6 +127,7 @@ Patch73: openssh-5.6p1-gsskex.patch
Patch74: openssh-5.3p1-randclean.patch
Patch78: openssh-5.6p1-kuserok.patch
Patch79: openssh-5.5p1-x11.patch
Patch80: openssh-5.6p1-biguid.patch
License: BSD
Group: Applications/Internet
@ -300,6 +301,7 @@ popd
%patch74 -p1 -b .randclean
%patch78 -p1 -b .kuserok
%patch79 -p1 -b .x11
%patch80 -p1 -b .biguid
autoreconf
pushd pam_ssh_agent_auth-%{pam_ssh_agent_ver}
@ -581,6 +583,9 @@ fi
%endif
%changelog
* Mon Sep 13 2010 Jan F. Chadima <jchadima@redhat.com> - 5.6p1-6 + 0.9.2-27
- Repaired the problem with puting entries with very big uid into lastlog
* Mon Sep 13 2010 Jan F. Chadima <jchadima@redhat.com> - 5.6p1-5 + 0.9.2-27
- Merging selabel patch with the upstream version. (#632914)