summaryrefslogtreecommitdiff
path: root/x11/xlockmore-lite
diff options
context:
space:
mode:
authoris <is@pkgsrc.org>2012-10-15 15:29:09 +0000
committeris <is@pkgsrc.org>2012-10-15 15:29:09 +0000
commit95ff4f397f0246accb76354a0cb59aa684a53377 (patch)
tree74041fd54243787bed043879273a55c95842be6b /x11/xlockmore-lite
parentc7aa74dbaa4b492cd769ff4e30c7ec1984ed7502 (diff)
downloadpkgsrc-95ff4f397f0246accb76354a0cb59aa684a53377.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/Makefile4
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