diff options
author | csjp <csjp@FreeBSD.org> | 2005-10-12 11:37:55 +0800 |
---|---|---|
committer | csjp <csjp@FreeBSD.org> | 2005-10-12 11:37:55 +0800 |
commit | 7040379f2bb7a9d9365c1da434ab5dca4d83e78e (patch) | |
tree | 50044186bbe56a97e441ff1568160c7cc18911f8 /security/termlog/Makefile | |
parent | 6e00c2544b9872ff44f10daffd1cb6952ab755f6 (diff) | |
download | freebsd-ports-gnome-7040379f2bb7a9d9365c1da434ab5dca4d83e78e.tar.gz freebsd-ports-gnome-7040379f2bb7a9d9365c1da434ab5dca4d83e78e.tar.zst freebsd-ports-gnome-7040379f2bb7a9d9365c1da434ab5dca4d83e78e.zip |
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/termlog/Makefile')
-rw-r--r-- | security/termlog/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/termlog/Makefile b/security/termlog/Makefile index 8f13b71d110b..59079147243c 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 |