diff options
author | csjp <csjp@FreeBSD.org> | 2005-10-12 03:37:55 +0000 |
---|---|---|
committer | csjp <csjp@FreeBSD.org> | 2005-10-12 03:37:55 +0000 |
commit | 7040379f2bb7a9d9365c1da434ab5dca4d83e78e (patch) | |
tree | 50044186bbe56a97e441ff1568160c7cc18911f8 /security | |
parent | 6e00c2544b9872ff44f10daffd1cb6952ab755f6 (diff) | |
download | FreeBSD-ports-7040379f2bb7a9d9365c1da434ab5dca4d83e78e.zip FreeBSD-ports-7040379f2bb7a9d9365c1da434ab5dca4d83e78e.tar.gz |
Fix a couple of problems on 64 bit platforms by importing 2.5:
Summary:
o Call va_start/va_end for each call to va_arg(). I have no idea why this
works on i386 but it shouldn't. This un-busts termlog on 64 bit
platforms.
o When allocating snp descriptors, allocate the proper size. Currently we
are allocating sizeof(struct utmp) when we really should be allocating
sizeof(struct snp_d). I can only imagine how this happen, but I am going
to guess it was a cut-and-paste-o. This helps un-busts termlog on 64 bit
architectures.
Fixes Submitted by: Eirik ?verby
While we are here:
o Open tty line with O_NONBLOCK
o Close the line fd after we attach to it as we dont need it. This closes
an fd leak.
o Remove comment about fd leak
Approved by: kris
Diffstat (limited to 'security')
-rw-r--r-- | security/termlog/Makefile | 2 | ||||
-rw-r--r-- | security/termlog/distinfo | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/security/termlog/Makefile b/security/termlog/Makefile index 8f13b71..5907914 100644 --- a/security/termlog/Makefile +++ b/security/termlog/Makefile @@ -6,7 +6,7 @@ # PORTNAME= termlog -PORTVERSION= 2.4 +PORTVERSION= 2.5 CATEGORIES= security sysutils MASTER_SITES= http://www.seccuris.com/documents/downloads/ MASTER_SITE_SUBDIR= termlog diff --git a/security/termlog/distinfo b/security/termlog/distinfo index 33aa5f3..28e5f59 100644 --- a/security/termlog/distinfo +++ b/security/termlog/distinfo @@ -1,2 +1,2 @@ -MD5 (termlog-2.4.tar.gz) = 7ea26eec2118d98b5511bdee656446e2 -SIZE (termlog-2.4.tar.gz) = 9839 +MD5 (termlog-2.5.tar.gz) = ffca397f74ab264ac2760daa0baadd02 +SIZE (termlog-2.5.tar.gz) = 9818 |