Your message dated Fri, 06 Jun 2008 11:32:02 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#484361: fixed in scanbuttond 0.2.3-7
has caused the Debian Bug report #484361,
regarding scanbuttond: segfaults if PATH is not set
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
484361: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=484361
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: scanbuttond
Version: 0.2.3-6
Severity: important
I tried to run scanbuttond from udev by appending
, RUN+="/usr/bin/scanbuttond" to a rule in /etc/udev/libsane.rules. But the
program segfaults because the environment variable PATH is not set. I
attached a patch which corrects the problem.
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.24.7
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) (ignored:
LC_ALL set to [EMAIL PROTECTED])
Versions of packages scanbuttond depends on:
ii libc6 2.3.6.ds1-13etch5 GNU C Library: Shared libraries
ii libsane 1.0.18-5 API library for scanners
ii libusb-0.1-4 2:0.1.12-5 userspace USB programming library
Versions of packages scanbuttond recommends:
ii sane-utils 1.0.18-5 API library for scanners --
utilit
-- no debconf information
--- scanbuttond.c.orig 2008-06-03 22:11:00.000000000 +0200
+++ scanbuttond.c 2008-06-03 22:11:21.000000000 +0200
@@ -268,13 +268,23 @@ int main(int argc, char** argv)
// setup the environment
char* oldpath = getenv("PATH");
+ if (oldpath == NULL) {
+ oldpath = "";
+ }
char* dir = dirname(argv[0]);
path = (char*)malloc(strlen(oldpath) + strlen(dir) + 1);
- strcpy(path, oldpath);
- strcat(path, ":");
- strcat(path, dir);
- setenv("PATH", path, 1);
- free(path);
+ if (path) {
+ if (strlen(oldpath)) {
+ strcpy(path, oldpath);
+ strcat(path, ":");
+ }
+ else {
+ path[0] = 0;
+ }
+ strcat(path, dir);
+ setenv("PATH", path, 1);
+ free(path);
+ }
syslog(LOG_DEBUG, "running scanner initialization script...");
execute_and_wait(initscanner_script);
--- End Message ---
--- Begin Message ---
Source: scanbuttond
Source-Version: 0.2.3-7
We believe that the bug you reported is fixed in the latest version of
scanbuttond, which is due to be installed in the Debian FTP archive:
scanbuttond_0.2.3-7.diff.gz
to pool/main/s/scanbuttond/scanbuttond_0.2.3-7.diff.gz
scanbuttond_0.2.3-7.dsc
to pool/main/s/scanbuttond/scanbuttond_0.2.3-7.dsc
scanbuttond_0.2.3-7_amd64.deb
to pool/main/s/scanbuttond/scanbuttond_0.2.3-7_amd64.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.
Milan Zamazal <[EMAIL PROTECTED]> (supplier of updated scanbuttond 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.8
Date: Fri, 06 Jun 2008 12:43:57 +0200
Source: scanbuttond
Binary: scanbuttond
Architecture: source amd64
Version: 0.2.3-7
Distribution: unstable
Urgency: low
Maintainer: Milan Zamazal <[EMAIL PROTECTED]>
Changed-By: Milan Zamazal <[EMAIL PROTECTED]>
Description:
scanbuttond - Scanner button daemon
Closes: 484361
Changes:
scanbuttond (0.2.3-7) unstable; urgency=low
.
* Patch to avoid segfault when PATH is not set applied; thanks to Thomas
Viehweger <[EMAIL PROTECTED]>; closes: #484361.
* Standards 3.7.3 (no real change).
* config.{sub,guess} updated.
* FSF address removed from debian/copyright.
* "Copyright (C)" added to debian/copyright.
Checksums-Sha1:
eb339fd44bbdd02ef68540b03084e454d2f5d062 981 scanbuttond_0.2.3-7.dsc
2e8507e435d86cf0849ecc99a011325318a8f8cd 10781 scanbuttond_0.2.3-7.diff.gz
3a51f4dc51fddf4c25e55d12eb72d9a07d2e8f74 34382 scanbuttond_0.2.3-7_amd64.deb
Checksums-Sha256:
7d7f58143457f40f05bdde34fad84f7894f0582e29941af92114a0f37ae51a82 981
scanbuttond_0.2.3-7.dsc
431da78350fd4b1030fd363f76c84cf87b54da6ccee4442ddcadf12da882450b 10781
scanbuttond_0.2.3-7.diff.gz
4f7c345dd9ea0e4ec725a846b8db3021e3bca7f4779da602db52f0642096033c 34382
scanbuttond_0.2.3-7_amd64.deb
Files:
5b504878208fad98b3629a577dac76d9 981 misc extra scanbuttond_0.2.3-7.dsc
5d7f3a161f904a961a3909c71b56dc8b 10781 misc extra scanbuttond_0.2.3-7.diff.gz
358666d8da8e18de00cab9fd6a25cf12 34382 misc extra scanbuttond_0.2.3-7_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFISR89kSkk/j3Cm0ERAqggAKCxP841YhU4wuSIdc1nSdEneOoKzQCgs2/e
NZggEXvHFAJw7uWMz0lMGPI=
=t9L0
-----END PGP SIGNATURE-----
--- End Message ---