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 | 95ff4f397f0246accb76354a0cb59aa684a53377 (patch) | |
tree | 74041fd54243787bed043879273a55c95842be6b /x11/xlockmore/Makefile | |
parent | c7aa74dbaa4b492cd769ff4e30c7ec1984ed7502 (diff) | |
download | pkgsrc-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/Makefile')
-rw-r--r-- | x11/xlockmore/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/x11/xlockmore/Makefile b/x11/xlockmore/Makefile index d56e5b5c097..ecce28e7447 100644 --- a/x11/xlockmore/Makefile +++ b/x11/xlockmore/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.99 2012/10/08 23:02:40 adam Exp $ +# $NetBSD: Makefile,v 1.100 2012/10/15 15:29:09 is Exp $ .include "Makefile.common" -PKGREVISION= 5 +PKGREVISION= 6 COMMENT= Like the XLock session-locker/screensaver, but with more |