From ce0606e5485335273050e6cde8a091a5f1df056a Mon Sep 17 00:00:00 2001 From: Jan F Date: Sep 13 2010 11:02:01 +0000 Subject: - Repaired the problem with puting entries with very big uid into lastlog --- diff --git a/openssh-5.6p1-biguid.patch b/openssh-5.6p1-biguid.patch new file mode 100644 index 0000000..c613dcc --- /dev/null +++ b/openssh-5.6p1-biguid.patch @@ -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__, diff --git a/openssh.spec b/openssh.spec index 2feedbb..e3d7ae6 100644 --- a/openssh.spec +++ b/openssh.spec @@ -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 - 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 - 5.6p1-5 + 0.9.2-27 - Merging selabel patch with the upstream version. (#632914)