diff options
author | is <is@pkgsrc.org> | 2012-10-15 15:29:09 +0000 |
---|---|---|
committer | is <is@pkgsrc.org> | 2012-10-15 15:29:09 +0000 |
commit | c7191c1c7ab56dae39c7a22bdae725dd7e7772d8 (patch) | |
tree | 74041fd54243787bed043879273a55c95842be6b /x11/xlockmore-lite | |
parent | 9e07683fa9a5d499719040081075d4d5c79da957 (diff) | |
download | pkgsrc-c7191c1c7ab56dae39c7a22bdae725dd7e7772d8.tar.gz |
xlock -mode dclock would segfault on OSes with sizeof(time_t)>sizeof(long);
this includes NetBSD-6 on 32bit systems.
As a result, xlock -mode random (the default) would eventually unlock
the screen, without the user being aware of this (as she/he's can be
presumed to have left the monitor).
The reason was that some variables in dclock.c were declared long, but
contain essentially time_t values. In on case, a pointer to such a
variable was casted to (struct time_t *) and passed to localtime(),
and the resulting pointer is not checked for error before being used.
The variables have been changed to time_t and the typecast has been
removed.
Diffstat (limited to 'x11/xlockmore-lite')
-rw-r--r-- | x11/xlockmore-lite/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/x11/xlockmore-lite/Makefile b/x11/xlockmore-lite/Makefile index 509ebf8b483..b4cc790f0be 100644 --- a/x11/xlockmore-lite/Makefile +++ b/x11/xlockmore-lite/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.15 2012/06/15 23:06:08 dholland Exp $ +# $NetBSD: Makefile,v 1.16 2012/10/15 15:29:10 is Exp $ .include "../../x11/xlockmore/Makefile.common" PKGNAME= ${DISTNAME:S/-/-lite-/} -PKGREVISION= 1 +PKGREVISION= 2 COMMENT= "lite" version of xlockmore CONFIGURE_ARGS+= --without-xpm |