Your message dated Sun, 19 Nov 2006 03:02:14 -0800
with message-id <[EMAIL PROTECTED]>
and subject line Bug#399231: fixed in mouseemu 0.15-6
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: mouseemu
Version: 0.15-5
Severity: important
Tags: patch
Hi,
2.6.19-rcX cares about more fields in uinput_user_dev. Since we pass in
random values for e.g. ff_ in uinput this results in a completely dead
keyboard since the uinput device never gets fully initialized. Obvious
fix attached, please apply.
The second patch fixes the wrong detection of write failures. Write
returns negative values on errors (and we aren't too happy with 0
either), with this patch we would have seen -EINVAL due to the
uninitialized uinput_user_dev.
I didn't make this release critical since etch is supposed to ship with
2.6.18, but it would be nice if it would work on newer kernels too.
Cheers,
-- Guido
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.19-rc6-dirty
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Versions of packages mouseemu depends on:
ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries
ii procps 1:3.2.7-3 /proc file system utilities
mouseemu recommends no packages.
-- no debconf information
#! /bin/sh /usr/share/dpatch/dpatch-run
## write_error.dpatch by <[EMAIL PROTECTED]>
##
## Intialize all fields in uinput_user_dev, otherwise strange things
## like dead keyboard, etc. might happen
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Don't kill ourselves if not forking into the background
diff --git a/mouseemu.c b/mouseemu.c
index 6decb59..9c5b332 100644
--- a/mouseemu.c
+++ b/mouseemu.c
@@ -365,6 +365,7 @@ int uinput_setup(void)
struct uinput_user_dev device;
int i;
+ memset(&device, 0, sizeof(struct uinput_user_dev));
/*setup keyboard device */
if(ui_keyb_fd > 0) {
#! /bin/sh /usr/share/dpatch/dpatch-run
## write_error.dpatch by <[EMAIL PROTECTED]>
##
## Fix write error detection
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Don't kill ourselves if not forking into the background
@DPATCH@
--- a/mouseemu.c.orig 2006-11-18 17:36:47.000000000 +0100
+++ b/mouseemu.c 2006-11-18 17:47:11.000000000 +0100
@@ -88,7 +88,7 @@
static void passthrough(int fd, struct input_event event)
{
- if (write(fd, &event, sizeof(event)) < sizeof(event))
+ if (write(fd, &event, sizeof(event)) <= 0)
perror("passthrough error");
}
--- End Message ---
--- Begin Message ---
Source: mouseemu
Source-Version: 0.15-6
We believe that the bug you reported is fixed in the latest version of
mouseemu, which is due to be installed in the Debian FTP archive:
mouseemu_0.15-6.diff.gz
to pool/main/m/mouseemu/mouseemu_0.15-6.diff.gz
mouseemu_0.15-6.dsc
to pool/main/m/mouseemu/mouseemu_0.15-6.dsc
mouseemu_0.15-6_powerpc.deb
to pool/main/m/mouseemu/mouseemu_0.15-6_powerpc.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Gaudenz Steinlin <[EMAIL PROTECTED]> (supplier of updated mouseemu package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Sun, 19 Nov 2006 11:37:40 +0100
Source: mouseemu
Binary: mouseemu
Architecture: source powerpc
Version: 0.15-6
Distribution: unstable
Urgency: medium
Maintainer: Gaudenz Steinlin <[EMAIL PROTECTED]>
Changed-By: Gaudenz Steinlin <[EMAIL PROTECTED]>
Description:
mouseemu - Emulate mouse buttons and mouse wheel
Closes: 399231
Changes:
mouseemu (0.15-6) unstable; urgency=medium
.
[ Guido Guenther ]
* Intialize all fields in uinput_user_dev (initialize_device.dpatch)
(closes: #399231)
* Fix write error detection (write_error.dpatch)
Files:
053146f576fb1dcfe7eae51444019f70 934 utils optional mouseemu_0.15-6.dsc
506e4fa67e972cfabc7ac28f0487c63a 11192 utils optional mouseemu_0.15-6.diff.gz
c6b9df57433ba713b65b80d4b0078053 14652 utils optional
mouseemu_0.15-6_powerpc.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iQEVAwUBRWA2xk0yN7tZsYcyAQI+LwgAhdpBliV6dPck8xstXMp9SrPoR6qS6W52
YiUXnsZWDYhaaYKLzLPLTFFwhvQOciNtlGtoKZ5VUtN5quDTjLXSoXhNdra9AaPc
8V3BebjuroLtkgMW/1oIU3M2CF2JvzWLu8/eQ7bRHZs4OwhD+Cz/KvlPfMs1BFvO
1RexA4EVg9UQppxoWDLWeICI450d5cHx2/DEmMLGsSkVKPGNfeKffEntwIm6WEXr
vuWcdT7Fu+6VEi8pA1PM9ZouAMt0eKNjPWVlWmB+sgYF1fvDtcKrX4y3pBZeKh2R
Xyhs0q7hke60MbFppji76oy2UybmwKF7UN2/bR5WpJ+fbxa046qwbw==
=igZV
-----END PGP SIGNATURE-----
--- End Message ---